Function at 0x40da50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48887b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
cmp byte [esi + 0x504], 0
je 0x40dabe
mov eax, dword [esi + 4]
push 2
push eax
mov byte [esi + 0x504], 0
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x405
push ecx
call ebx
push eax
lea ecx, [esi + 0x3a0]
call fcn.004188a0
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0040f870
mov eax, dword [esi + 0x390]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
mov eax, dword [esi + 4]
push eax
call edi
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x394]
push 0x404
push edx
mov dword [ebp + 0xc], ecx
call ebx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call edi
mov edx, dword [esi + 4]
push 1
push edx
call ebx
mov ecx, dword [esi + 0x398]
cmp dword [ecx - 0xc], 0
je 0x40db2d
push ecx
push eax
call edi
jmp 0x40db36
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esi + 0x498]
push 0
mov ecx, edi
call fcn.00452eb0
test eax, eax
jne 0x40db8f
push eax
mov ecx, edi
call fcn.004553b0
mov ebx, eax
xor edi, edi
cmp edi, 8
jge 0x40db8f
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x4dc]
mov dword [ebp + 0xc], 0x12c
call fcn.0040e4e0
lea ecx, [edi + edi*2]
shl ecx, 4
add ecx, 0x4c1208
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
push edx
mov ecx, ebx
call fcn.0040e4e0
add edi, 1
jmp 0x40db55
lea eax, [esi + 0x498]
push 1
push eax
lea ecx, [esi + 0x3a0]
call fcn.004525d0
mov eax, dword [esi + 0x3a4]
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
lea ebx, [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x30]
push edx
push edi
call fcn.0040d550
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [0x4c120c], 0
jne 0x40dbfc
xor eax, eax
xor ecx, ecx
jmp 0x40dc07
mov eax, dword [0x4c1214]
mov ecx, dword [0x4c1218]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], ecx
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00436410
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
add esp, 0xc
push 4
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x40]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x3a4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
lea ecx, [esi + 0x498]
call fcn.00453190
mov esi, dword [esi + 0x39c]
test esi, esi
je 0x40dc82
mov ecx, dword [ebx]
push esi
push ecx
call fcn.00436660
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.004186c0
jmp 0x40dc69