Function at 0x470b23
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push dword [ebp + 8]
mov ecx, 0x4c2810
call fcn.0041cedf
mov ecx, dword [0x4c2870]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
mov dword [ebp - 0xc], ebx
cmp dword [ebx + 0x19c], 0
mov esi, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
je 0x470b6b
push 0xf
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
test esi, esi
jle 0x470e16
test ecx, ecx
jle 0x470e16
test edx, edx
jle 0x470e16
cmp dword [ebp + 0x14], 0
jle 0x470e16
cmp dword [ebp + 0xc], 1
je 0x470e16
push edi
push 3
pop edi
mov dword [ebp - 0x10], edi
cmp dword [0x4c2894], edi
jl 0x470db9
mov eax, dword [0x4c2884]
mov eax, dword [eax + edi*4]
mov edi, dword [eax]
test edi, edi
je 0x470da6
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jne 0x470da6
cmp dword [edi], 0
je 0x470da6
movsx eax, word [edi + 0x88]
mov dword [ebp + 8], eax
imul eax, edx
cdq
idiv esi
mov esi, eax
movsx eax, word [edi + 0x8a]
mov dword [ebp - 0x14], eax
imul eax, dword [ebp + 0x14]
cdq
idiv ecx
mov ecx, eax
movsx eax, word [edi + 0x8c]
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp - 8]
mov dword [ebp + 0xc], eax
movsx eax, word [edi + 0x8e]
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 4]
movzx edx, word [edi + 0x86]
mov ebx, eax
test dx, dx
je 0x470d6c
test edx, 0x100
je 0x470c8e
movsx eax, word [edi + 0x8c]
mov dword [ebp + 0xc], eax
test dl, 6
jne 0x470c8e
mov eax, dword [ebp + 0x10]
test dl, 8
je 0x470c60
sub eax, dword [ebp - 8]
cdq
sub eax, edx
mov esi, eax
movsx eax, word [edi + 0x88]
sar esi, 1
add esi, eax
jmp 0x470c87
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jle 0x470c87
movsx edx, word [edi + 0x88]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0x10]
sub eax, edx
sub eax, dword [ebp + 0xc]
imul eax, esi
cdq
idiv dword [ebp - 8]
sub esi, eax
sub esi, dword [ebp + 0xc]
movzx edx, word [edi + 0x86]
test edx, 0x200
je 0x470ceb
movsx ebx, word [edi + 0x8e]
test dl, 0x60
jne 0x470ceb
mov eax, dword [ebp + 0x14]
test dl, dl
jns 0x470cbe
sub eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
movsx eax, word [edi + 0x8a]
sar ecx, 1
add ecx, eax
jmp 0x470ce4
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x470ce4
movsx edx, word [edi + 0x8a]
mov eax, dword [ebp - 4]
sub eax, edx
sub eax, ebx
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
sub ecx, ebx
movzx edx, word [edi + 0x86]
mov eax, edx
and eax, 2
cmovne esi, dword [ebp + 8]
test dl, 4
je 0x470d2e
test ax, ax
je 0x470d15
movsx eax, word [edi + 0x8c]
sub eax, esi
sub eax, dword [ebp - 8]
add eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
jmp 0x470d2e
movsx esi, word [edi + 0x8c]
sub esi, dword [ebp + 0xc]
movsx eax, word [edi + 0x88]
sub esi, dword [ebp - 8]
add esi, eax
add esi, dword [ebp + 0x10]
mov eax, edx
and eax, 0x20
cmovne ecx, dword [ebp - 0x14]
test dl, 0x40
je 0x470d6c
test ax, ax
movsx eax, word [edi + 0x8a]
je 0x470d5b
movsx ebx, word [edi + 0x8e]
sub ebx, ecx
sub ebx, dword [ebp - 4]
add ebx, eax
add ebx, dword [ebp + 0x14]
jmp 0x470d6c
movsx ecx, word [edi + 0x8e]
sub ecx, ebx
sub ecx, dword [ebp - 4]
add ecx, eax
add ecx, dword [ebp + 0x14]
push 0
push ebx
push dword [ebp + 0xc]
push ecx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_MoveWindow]
mov al, byte [edi + 0x90]
test al, al
jne 0x470dd3
push 0xffff
push 0
push 0x142
push dword [edi]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0x10], edi
cmp edi, dword [0x4c2894]
jle 0x470bad
push 1
push 0
push dword [ebx]
call dword [sym.imp.USER32.DLL_InvalidateRect]
mov byte [ebx + 0x184], 1
mov byte [ebx + 0x3a], 0
pop edi
jmp 0x470e33
cmp al, 0x16
jne 0x470d9a
test byte [edi + 0x92], 0x20
jne 0x470d9a
push 0
push dword [edi + 0x34]
push 0x469
push dword [edi]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov al, byte [edi + 0x93]
mov ebx, dword [ebp - 0xc]
cmp al, 0xff
je 0x470d9d
movzx eax, al
cmp eax, dword [ebx + 0x190]
je 0x470d9d
push 0
push dword [edi]
call dword [sym.imp.USER32.DLL_ShowWindow]
jmp 0x470d9d
mov ecx, dword [ebp + 0x14]
movzx ecx, cx
movzx eax, dx
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_DefDlgProcW]
pop esi
pop ebx
leave
ret 0x10