Function at 0x499ec8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5abe6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xd0], edi
jne 0x499f08
push 0x3020
push dword [esi + 0x20]
call ebx
test eax, eax
je 0x499f08
push edi
push edi
push 0x200
push eax
call fcn.0041bb65
test dword [esi + 0x84], 0x1000020
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
jne 0x49a011
push 0x3020
push dword [esi + 0x20]
call ebx
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00414ea9
xor eax, eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x18], eax
jge 0x49a011
sub eax, dword [ebp - 0x10]
xor edi, edi
sub eax, dword [ebp - 0x18]
push 0x16
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0x5ab6a8]
push dword [esi + 0x20]
call ebx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x499fdb
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00414ea9
mov eax, dword [ebp - 0x10]
xor ecx, ecx
sub eax, dword [ebp - 0x2c]
push 0x15
push ecx
push ecx
push eax
push dword [ebp - 0x14]
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
add edi, 4
cmp edi, 0x10
jb 0x499f99
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 8]
mov ecx, esi
sub eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x2c]
push 0x16
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
xor eax, eax
push eax
push eax
push eax
call fcn.00418738
mov ecx, esi
call fcn.0041ad8e
mov dword [ebp - 0x28], eax
xor eax, eax
cmp dword [esi + 0xd4], eax
je 0x49a0bd
test dword [esi + 0x84], 0x1000020
jne 0x49a0bd
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x20]
call edi
xor eax, eax
push 1
push dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call ebx
test eax, eax
je 0x49a08a
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x10]
mov ecx, esi
sub eax, dword [ebp - 0x20]
push 0x16
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
xor eax, eax
push eax
push eax
push eax
call fcn.00418738
xor edi, edi
push dword [edi + 0x5ab6a8]
push dword [esi + 0x20]
call ebx
mov ebx, eax
test ebx, ebx
je 0x49a0af
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add edi, 4
cmp edi, 0x10
jb 0x49a08c
mov ecx, esi
call fcn.00418294
test eax, 0x40000000
jne 0x49a0d4
push 0
mov ecx, esi
call fcn.0041a873
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00530862
mov esp, ebp
pop ebp
ret