Function at 0x416580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3cf5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
jne 0x416a4b
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x4165f6
mov eax, dword [ebx + 0x18]
sub esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x20], 1
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
call fcn.00416ec0
mov dword [edi], eax
jmp 0x4168ed
cmp ecx, 2
jne 0x416620
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x20], 1
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
je 0x41698d
lea eax, [ecx - 1]
jmp 0x416a4d
cmp ecx, 5
jne 0x4166fb
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x20], 1
movsx eax, si
mov dword [ebp - 0x34], eax
mov eax, esi
shr eax, 0x10
cwde
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push 0
push 0x1328
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x40]
call esi
test eax, eax
je 0x41667f
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x40]
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov esi, dword [ebp - 0x20]
mov edx, esi
sub eax, dword [ebx + 0x2e0]
sub edx, dword [ebx + 0x2dc]
add eax, dword [ebp - 0x30]
add edx, dword [ebp - 0x34]
push 1
mov dword [ebp - 0x14], eax
sub eax, ecx
push eax
mov dword [ebp - 0x18], edx
sub edx, esi
push edx
push ecx
push esi
push dword [ebx + 0x48]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
call esi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x20]
push 1
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebx + 0x184]
call esi
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x20], 0
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
je 0x416987
mov eax, 1
jmp 0x416a4d
cmp ecx, 0x111
jne 0x416904
mov ecx, dword [ebp - 0x28]
movzx eax, cx
mov ecx, 0xd8
mov dword [ebp - 0x24], eax
cmp cx, ax
jne 0x4167b0
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, ebx
mov dword [eax + 0x20], 1
mov eax, esp
sub esp, 8
mov dword [eax], esi
call fcn.00417250
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x416a44
mov eax, dword [ebp - 0x24]
mov ecx, 0x130
cmp cx, ax
jne 0x4167e9
mov eax, dword [ebx + 0x18]
push 5
mov dword [eax + 0x20], 1
push dword [ebx + 0x2c0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x416a44
mov eax, dword [ebp - 0x24]
mov ecx, 2
cmp cx, ax
jne 0x4168c5
mov eax, dword [ebx + 0x18]
push ecx
mov dword [eax + 0x20], 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4168e7
mov ecx, 0xd9
cmp cx, ax
jne 0x41674d
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, ebx
mov dword [eax + 0x20], 1
mov eax, esp
sub esp, 8
mov dword [eax], esi
call fcn.00417930
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x416a44
mov eax, dword [ebp - 0x24]
mov ecx, 0xdb
cmp cx, ax
jne 0x416789
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [eax + 0x20], 1
lea eax, [ebx + 0x44]
lea ecx, [eax + 0x120]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
cmp ecx, edx
je 0x416838
push dword [ebp - 0x30]
push 0
push 0
call fcn.0042eda0
lea eax, [ebx + 0x44]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41684e
push ecx
lea ecx, [ebx + 0x44]
call fcn.0046edd0
lea eax, [ebx + 0x180]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [eax + 0x120]
mov dword [ebp - 4], 1
lea edx, [ebp - 0x1c]
cmp ecx, edx
je 0x41688f
push dword [ebp - 0x30]
push 0
push 0
call fcn.0042eda0
lea eax, [ebx + 0x180]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4168a8
push ecx
lea ecx, [ebx + 0x180]
call fcn.0046edd0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x416a44
mov eax, dword [ebp - 0x24]
mov ecx, 1
cmp cx, ax
jne 0x41698a
mov eax, dword [ebx + 0x18]
push ecx
mov dword [eax + 0x20], ecx
mov eax, esp
push ecx
push ecx
mov ecx, ebx
mov dword [eax], esi
call fcn.004183f0
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
je 0x41698a
mov eax, 1
jmp 0x416a4d
cmp ecx, 0x4e
jne 0x41698d
cmp dword [esi + 8], 0xfffffdd9
jne 0x41698d
mov eax, dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
mov dword [eax + 0x20], 1
push dword [ebx + 0x40]
call esi
push 0
mov edi, eax
push edi
push 0x130c
push dword [ebx + 0x40]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov eax, 5
test edi, edi
cmove ecx, eax
push ecx
push dword [ebx + 0x48]
call esi
xor eax, eax
mov ecx, 5
cmp edi, 1
cmove eax, ecx
push eax
push dword [ebx + 0x184]
call esi
mov edi, dword [ebp - 0x24]
mov dword [edi], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x416a44
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push esi
push dword [ebp - 0x28]
push ecx
mov ecx, ebx
call fcn.00419800
cmp dword [ebp - 0x2c], 0
mov dword [edi], eax
jne 0x416a44
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x20]
cmp eax, 5
jne 0x416a21
xor eax, eax
test ecx, ecx
cmove ebx, eax
cmp byte [ecx + 0x1c], al
je 0x4169f9
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x28]
cmp ecx, 2
jne 0x4169e9
push 0
push eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
jmp 0x416a01
test ecx, ecx
jne 0x4169fc
push 5
push eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
jmp 0x416a01
mov ecx, dword [ebp - 0x28]
cmp ecx, 1
je 0x416a3e
mov eax, esi
lea ecx, [ebx + 0x20]
shr eax, 0x10
cwde
push eax
movsx eax, si
push eax
call fcn.00418f30
mov dword [edi], 0
mov eax, 1
jmp 0x416a4d
cmp eax, 0x24
jne 0x416a4b
cmp dword [ecx + 0x14], 0xffffffff
je 0x416a3e
cmp dword [ecx + 0x18], 0xffffffff
je 0x416a3e
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [edi], 0
mov eax, 1
jmp 0x416a4d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret 0x18