Function at 0x40e750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov dword [esp + 0x30], 0xff
mov dword [esp + 0x14], esi
mov ecx, 5
mov dword [esp + 0x34], esi
mov edx, 0x4549d4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e7b1
mov ecx, edx
call fcn.00422ba0
mov ecx, dword [0x4549dc]
lea edx, [esp + 0x30]
call fcn.004133a0
mov edi, eax
xor edx, edx
mov eax, 5
mov ecx, 0x4549d4
lock cmpxchg dword [ecx], edx
cmp eax, 5
je 0x40e7dc
call fcn.00422cf0
test edi, edi
je 0x40e7e5
mov edi, dword [edi + 8]
jmp 0x40e7e7
xor edi, edi
cmp byte [edi], 0
lea ecx, [edi + 8]
mov dword [esp + 0x2c], ecx
jne 0x40e879
push 0
push 0
push 0x474
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea ecx, [edi + 8]
push 0x400f
push 0
mov edx, esi
call fcn.004139f0
push 0x2000
push 0
mov edx, esi
lea ecx, [edi + 8]
call fcn.004139f0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xc
push 0
push 2
push dword [esp + 0x20]
mov dword [edi + 0x5c], eax
call esi
mov edx, eax
lea ecx, [edi + 8]
call fcn.004139f0
push 0
push 1
push dword [esp + 0x1c]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Close
push 2
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov byte [edi], 1
lea ecx, [edi + 8]
mov byte [esp + 0x13], 1
jmp 0x40e87e
mov byte [esp + 0x13], 0
cmp ebx, 1
je 0x40e96e
test ebx, ebx
je 0x40e971
mov edx, dword [ebx + 4]
lea eax, [ecx + 4]
cmp edx, eax
je 0x40e8a6
test dword [edx + 0x48], 0x2000
je 0x40e971
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push eax
push esi
mov dword [esp + 0x74], 0x12c
mov dword [esp + 0x78], pe_nt_image_headers32
call dword [sym.imp.USER32.dll_MapDialogRect]
lea eax, [esp + 0x54]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x70]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x1c]
call esi
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
sub edi, edx
mov esi, dword [esp + 0x58]
sub eax, edx
mov ebx, dword [esp + 0x68]
sub esi, ebx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], edi
sub ecx, ebx
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x34], esi
sub edi, eax
mov eax, esp
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x70]
sub edi, edx
push dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub esi, ecx
mov ecx, dword [esp + 0x30]
sub esi, ebx
push dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov dword [eax + 0xc], esi
call fcn.00413a70
jmp 0x40e97f
mov ebx, dword [edi + 0x5c]
push dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
call fcn.004139f0
cmp byte [esp + 0x13], 0
mov ebx, eax
je 0x40e9fa
call fcn.004143a0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x5c], edx
call fcn.00414430
mov ecx, dword [eax]
cmp ecx, dword [0x4538a8]
mov edx, dword [eax + 4]
cmovl ecx, dword [0x4538a8]
cmp edx, dword [0x4538ac]
mov dword [esp + 0x5c], ecx
cmovl edx, dword [0x4538ac]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x54]
call fcn.00417460
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
push 0
push dword [esp + 0x64]
push dword [esp + 0x64]
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_MoveWindow]
add esi, 0x14
add edi, 0x14
push esi
push edi
call fcn.00414600
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429cdd
mov esp, ebp
pop ebp
ret 8