Function at 0x40d950
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x2248
call fcn.00427e90
mov eax, dword [0x44aad4]
xor eax, esp
mov dword [esp + 0x2244], eax
mov eax, dword [esp + 0x224c]
push ebx
push ebp
push esi
mov esi, dword [0x44f3bc]
push edi
xor edi, edi
push 0xc20
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call fcn.0041aa8d
add esp, 4
push 0x442554
push 0x442ce0
mov dword [esi + 0x4498], eax
call fcn.00424a8a
mov ebx, eax
add esp, 8
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40e11f
push ebx
lea ecx, [esp + 0x254]
push 0x7f8
push ecx
call fcn.00424aed
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x254]
push str._2d_n
push eax
call fcn.00424911
add esp, 0xc
cmp dword [esi + 0x54], edi
je 0x40d9f3
mov dword [esp + 0x18], edi
push ebx
lea ecx, [esp + 0x254]
push 0x7f8
push ecx
call fcn.00424aed
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 0x20
ja 0x40e13a
cmp eax, edi
mov dword [esp + 0x20], edi
jle 0x40ddbe
lea edx, [esp + 0x58]
mov dword [esp + 0x14], edx
lea ebx, [ebx]
mov eax, dword [esi + 0x4498]
push 0xc20
push 0
push eax
call fcn.00425d60
add esp, 0xc
mov eax, 0x820
jmp 0x40da50
mov ecx, dword [esi + 0x4498]
mov dword [eax + ecx], 1
add eax, 4
cmp eax, 0xc20
jl 0x40da50
push ebx
lea edx, [esp + 0x254]
push 0x3ff
push edx
call fcn.00424aed
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [eax + 4]
push ecx
push eax
lea edx, [eax - 4]
push edx
add eax, 0xfffffff8
push eax
lea eax, [esp + 0x26e]
push str._4d__4d__4d__4d_n
push eax
call fcn.00424911
push ebx
lea ecx, [esp + 0x26c]
push 0x3ff
push ecx
call fcn.00424aed
mov edx, dword [esi + 0x4498]
add esp, 0x24
add edx, 0x400
push edx
lea eax, [esp + 0x268]
push 0x442434
push eax
call fcn.00424911
add esp, 0xc
push ebx
lea ecx, [esp + 0x1254]
push 0x3ff
push ecx
call fcn.004243c0
lea eax, [esp + 0x125c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40daf8
sub eax, edx
mov word [esp + eax*2 + 0x24e], 0
lea eax, [esp + 0x1250]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40db17
sub eax, edx
add eax, 1
push eax
push 0x450448
push 0xffffffffffffffff
lea edx, [esp + 0x125c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
movzx ecx, word [eax + 0x450448]
mov word [esp + eax + 0x1a50], cx
add eax, 2
test cx, cx
jne 0x40db41
lea eax, [esp + 0x1a50]
push 0x27
push eax
call fcn.00424547
add esp, 8
test eax, eax
je 0x40db73
mov word [eax], 0
lea ecx, [esp + 0x1a50]
push 0x27
push ecx
call fcn.00424e29
add esp, 8
test eax, eax
je 0x40dba4
add eax, 2
lea edx, [esp + 0x1a50]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x40db95
push ebx
lea edx, [esp + 0x254]
push 0x7f8
push edx
call fcn.00424aed
mov eax, dword [esi + 0x4498]
add esp, 0xc
lea ecx, [eax + 0x818]
push ecx
lea edx, [eax + 0x810]
push edx
lea ecx, [eax + 0x80c]
push ecx
add eax, 0x808
push eax
lea edx, [esp + 0x26e]
push str._d__d__lg__lg
push edx
call fcn.00424911
push ebx
lea eax, [esp + 0x26c]
push 0x7f8
push eax
call fcn.00424aed
add esp, 0x24
lea edi, [esp + 0x25e]
mov ebp, 0x408
nop
push 0x7c
push edi
call fcn.00424e29
add esp, 8
test eax, eax
je 0x40dc39
mov ecx, dword [esi + 0x4498]
add ecx, ebp
push ecx
lea edi, [eax + 2]
push 0x442d8c
push edi
call fcn.00424911
add esp, 0xc
add ebp, 4
cmp ebp, 0x808
jl 0x40dc10
push ebx
lea edx, [esp + 0x254]
push 0x3ff
push edx
call fcn.00424aed
lea eax, [esp + 0x25c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc64
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x24e], cx
lea eax, [esp + 0x25e]
xor ebp, ebp
lea edi, [eax + 2]
mov eax, dword [esi + 0x4498]
add eax, ebp
push eax
push 0x442434
push edi
call fcn.00424911
add esp, 0xc
push 0x7c
push edi
call fcn.00424e29
add esp, 8
test eax, eax
je 0x40dcb8
add ebp, 4
cmp ebp, 0x400
jl 0x40dc84
push ebx
lea ecx, [esp + 0x254]
push 0x3ff
push ecx
call fcn.00424aed
lea eax, [esp + 0x25c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x40dce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dce0
sub eax, edx
push 6
lea edx, [esp + 0x254]
sar eax, 1
push 0x442d94
push edx
mov word [esp + eax*2 + 0x25a], cx
call fcn.00424bac
add esp, 0xc
test eax, eax
jne 0x40dd6a
lea eax, [esp + 0x25c]
mov ebp, 0x820
mov edi, edi
lea edi, [eax + 2]
mov eax, dword [esi + 0x4498]
add eax, ebp
push eax
push 0x442434
push edi
call fcn.00424911
add esp, 0xc
push 0x7c
push edi
call fcn.00424e29
add esp, 8
test eax, eax
je 0x40dd54
add ebp, 4
cmp ebp, 0xc20
jl 0x40dd20
push ebx
lea ecx, [esp + 0x254]
push 0x7f8
push ecx
call fcn.00424aed
add esp, 0xc
mov edx, dword [esi + 0x4498]
add edx, 0x404
push edx
lea eax, [esp + 0x268]
push 0x442434
push eax
call fcn.00424911
fld qword [0x443528]
add esp, 4
fstp qword [esp]
push 0xffffffffffffffff
lea ecx, [esp + 0x1a5c]
push ecx
call fcn.0040c8c0
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], 0x10
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jl 0x40da30
push ebx
lea edx, [esp + 0x254]
push 0x3ff
push edx
call fcn.00424aed
add esp, 0xc
push 0xd
lea eax, [esp + 0x254]
push str._HistoryBegin
push eax
call fcn.00424bac
add esp, 0xc
test eax, eax
jne 0x40e052
add esi, 0x2a0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x1254]
push 0x3ff
push ecx
call fcn.004243c0
lea eax, [esp + 0x125c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40de25
sub eax, edx
push 0xb
lea edx, [esp + 0x1254]
push str._HistoryEnd
push edx
mov word [esp + eax*2 + 0x25a], 0
call fcn.00423b65
add esp, 0xc
test eax, eax
je 0x40e04e
lea eax, [esp + 0x1250]
push 0x3b
push eax
call fcn.00424ec0
mov edi, eax
add esp, 8
test edi, edi
je 0x40e04e
lea ebx, [edi + 1]
push 0x3b
push ebx
call fcn.00424ec0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40e04a
lea eax, [ebp + 1]
push 0x3b
push eax
mov dword [esp + 0x40], eax
call fcn.00424ec0
mov esi, eax
add esp, 8
test esi, esi
je 0x40e04a
lea eax, [esi + 1]
push 0x3b
push eax
mov dword [esp + 0x48], eax
call fcn.00424ec0
add esp, 8
test eax, eax
mov dword [esp + 0x30], eax
je 0x40e04a
add eax, 1
push 0x3b
push eax
mov dword [esp + 0x54], eax
call fcn.00424ec0
add esp, 8
test eax, eax
mov dword [esp + 0x28], eax
je 0x40e04a
add eax, 1
push 0x3b
push eax
mov dword [esp + 0x50], eax
call fcn.00424ec0
add esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40e04a
add eax, 1
push 0x3b
push eax
mov dword [esp + 0x44], eax
call fcn.00424ec0
add esp, 8
lea edx, [esp + 0x1250]
mov dword [esp + 0x44], eax
mov byte [edi], 0
call fcn.00417cc0
mov edx, dword [esp + 0x14]
add edx, 0xffffffc0
nop
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40df30
mov edx, ebx
mov byte [ebp], cl
call fcn.00417cc0
mov edi, dword [esp + 0x14]
mov edx, edi
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40df51
mov edx, dword [esp + 0x38]
mov byte [esi], cl
call fcn.00417cc0
lea edx, [edi + 0x40]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40df70
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov byte [ecx], 0
call fcn.00417cc0
lea edx, [edi + 0x80]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40df97
mov edx, dword [esp + 0x28]
mov byte [edx], cl
mov edx, dword [esp + 0x4c]
call fcn.00417cc0
lea edx, [edi + 0xc0]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40dfc0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
mov byte [eax], cl
call fcn.00417cc0
lea edx, [edi + 0x100]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40dfe6
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40e021
mov edx, dword [esp + 0x3c]
mov byte [eax], cl
call fcn.00417cc0
lea edx, [edi + 0x500]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40e010
mov eax, dword [esp + 0x1c]
add dword [eax + 0x4490], 1
mov eax, dword [esp + 0x20]
add eax, 1
add edi, 0x584
cmp eax, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
jl 0x40de01
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
push ebx
call fcn.0042406c
mov ecx, dword [esi + 0x4498]
add esp, 4
push ecx
call fcn.0041aabd
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 4
xor ebp, ebp
push 0xf
mov dword [esi + 0x4498], ebp
call edi
push 4
mov esi, eax
call edi
mov edi, dword [esp + 0x34]
push 3
push edi
add esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esp + 0x18], ebp
jle 0x40e0df
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x54]
add ebx, 0x60
lea esp, [esp]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, dword [edi - 4]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 4]
sub edx, ecx
push edx
sub eax, esi
push eax
mov eax, dword [ebx]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
add ebp, 1
add ebx, 4
add edi, 0x10
cmp ebp, dword [esp + 0x18]
jl 0x40e0b0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x229
push ecx
call edi
mov edx, dword [esi + 0xc]
push eax
push 0
push 0x222
push edx
call edi
mov edi, dword [esp + 0x34]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040e820
mov ecx, dword [esp + 0x2254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042374b
add esp, 0x2248
ret 4
mov dword [esp + 0x18], edi
jmp 0x40e052