Function at 0x416d59
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ecx, 0xbc
cdq
idiv ecx
test eax, eax
jne 0x416d7f
xor al, al
jmp 0x41711e
push edi
push dword [edi + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406c18
push edi
push dword [edi + 0x10]
jmp 0x416db1
push 0
lea ecx, [ebp - 0x14]
call fcn.004135b8
mov ecx, eax
add ecx, 4
call fcn.0040c383
lea ecx, [ebp - 0x14]
call fcn.0040b7da
push edi
push dword [edi + 0x10]
lea ecx, [ebp - 0xc]
call fcn.00406c18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004135e4
test al, al
je 0x416d91
lea eax, [esi + 0x108]
cmp byte [eax], 0
push ebx
je 0x416ecd
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
push ebx
push dword [esi + 0xec]
mov byte [eax], 0
call edi
push ebx
push dword [esi + 0xf0]
call edi
push ebx
push dword [esi + 0xe4]
call edi
push ebx
push dword [esi + 0xe8]
call edi
push ebx
push dword [esi + 0xf4]
call edi
mov eax, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x15
push eax
call ebx
push eax
call edi
mov eax, dword [esi + 8]
push 0
push 0xf
push eax
call ebx
push eax
call edi
mov eax, dword [esi + 8]
push 0
push 0xe
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 0xcc]
movzx ecx, byte [ecx + 0x599]
mov eax, dword [esi + 8]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push 0x1f6
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 0xcc]
movzx ecx, byte [ecx + 0x598]
mov eax, dword [esi + 8]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push 0x1f7
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx + 0x12c]
mov edi, dword [esi + 8]
cdq
sub eax, edx
push 1
push dword [esi + 0xa4]
sar eax, 1
add eax, dword [esi + 0x8c]
push dword [esi + 0xa0]
push eax
mov eax, dword [ecx + 0x128]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x88]
push eax
push 0x1f5
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xec], 1
je 0x416ee5
push 0
mov ecx, esi
call fcn.0040c172
lea edi, [esi + 0x100]
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x5c]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0xc]
call fcn.00406c18
mov eax, dword [ebp - 0xc]
lea ebx, [esi + 0xf8]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xdc], 0
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jle 0x4170dc
lea eax, [esi + 0x5c]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00406c18
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.004135e4
test al, al
jne 0x4170d2
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22b], 0
jne 0x4170ab
lea eax, [esi + 0x5c]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00406c18
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.004135e4
test al, al
je 0x41700c
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [ebx + 4], eax
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x228], 0
je 0x41700c
mov ecx, edi
call fcn.004135b8
add eax, 4
push eax
mov ecx, esi
call fcn.00416761
cmp byte [ebp - 1], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
jne 0x416fec
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22c], 0
je 0x416fec
mov byte [ebp - 1], 1
cmp byte [ebp - 2], 0
jne 0x41700c
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22d], 0
je 0x41700c
mov byte [ebp - 2], 1
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x228], 0
jne 0x4170c9
mov ecx, edi
call fcn.004135b8
add eax, 4
push eax
mov ecx, esi
call fcn.00416761
cmp byte [ebp - 1], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
jne 0x417063
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22c], 0
je 0x417063
mov byte [ebp - 1], 1
cmp byte [ebp - 2], 0
jne 0x417083
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22d], 0
je 0x417083
mov byte [ebp - 2], 1
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xe8], 0
je 0x4170a8
mov ecx, edi
call fcn.004135b8
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x22a], 0
je 0x4170ab
inc dword [ebp - 8]
mov ecx, edi
call fcn.0040b7da
mov eax, dword [esi + 0xcc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xdc]
jl 0x416f35
jmp 0x4170d2
push 0
mov ecx, esi
call fcn.0040c172
cmp byte [ebp - 1], 0
je 0x4170dc
mov al, 1
jmp 0x4170e9
mov eax, dword [esi + 0xcc]
movzx eax, byte [eax + 0x598]
push eax
mov ecx, esi
call fcn.00415e3c
cmp byte [ebp - 2], 0
pop ebx
je 0x4170fc
mov al, 1
jmp 0x417109
mov eax, dword [esi + 0xcc]
movzx eax, byte [eax + 0x599]
push eax
mov ecx, esi
call fcn.00415e62
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
leave
ret