Function at 0x4407d7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x4a7630
call fcn.00430c14
mov ecx, dword [0x4a7690]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx]
cmp dword [edi + 0x1a0], 0
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
je 0x44081f
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
jle 0x440af4
cmp dword [ebp + 0xc], 0
jle 0x440af4
cmp dword [ebp + 0x10], 0
jle 0x440af4
cmp dword [ebp + 0x14], 0
jle 0x440af4
cmp ebx, 1
je 0x440af4
mov eax, 3
mov dword [ebp - 0x18], eax
cmp dword [0x4a76b4], eax
jl 0x440a8d
lea ecx, [ecx]
mov edx, dword [0x4a76a4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax]
test esi, esi
je 0x440a7a
mov ecx, dword [esi + 4]
cmp ecx, dword [edi + 4]
jne 0x440a7a
cmp dword [esi], 0
je 0x440a7a
movsx eax, word [esi + 0x80]
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp + 8]
movsx ecx, word [esi + 0x84]
movsx edi, word [esi + 0x86]
mov dword [ebp - 4], eax
movsx eax, word [esi + 0x82]
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, ecx
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, edi
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 8], eax
movzx eax, word [esi + 0x7e]
test ax, ax
je 0x440a3d
test eax, 0x100
je 0x440946
mov dword [ebp - 0xc], ecx
test al, 6
jne 0x440946
test al, 8
mov eax, dword [ebp + 0x10]
je 0x440915
sub eax, dword [ebp + 8]
cdq
sub eax, edx
mov ebx, eax
movsx eax, word [esi + 0x80]
sar ebx, 1
add ebx, eax
mov dword [ebp - 4], ebx
jmp 0x440949
mov ebx, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x440949
mov ebx, dword [ebp + 8]
movsx edx, word [esi + 0x80]
mov eax, ebx
sub eax, edx
sub eax, dword [ebp - 0xc]
imul eax, dword [ebp + 0x10]
cdq
idiv ebx
mov ebx, dword [ebp + 0x10]
sub ebx, eax
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
jmp 0x440949
mov ebx, dword [ebp - 4]
movzx eax, word [esi + 0x7e]
test eax, 0x200
je 0x4409aa
mov dword [ebp - 8], edi
test al, 0x60
jne 0x4409aa
test al, al
mov eax, dword [ebp + 0x14]
jns 0x440975
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
movsx edx, word [esi + 0x82]
sar eax, 1
add eax, edx
jmp 0x4409ad
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
sar edx, 1
cmp eax, edx
jle 0x4409ad
mov ebx, dword [ebp + 0xc]
movsx edx, word [esi + 0x82]
mov eax, ebx
sub eax, edx
sub eax, dword [ebp - 8]
imul eax, dword [ebp + 0x14]
cdq
idiv ebx
mov ebx, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp + 0x14]
sub eax, edx
sub eax, dword [ebp - 8]
jmp 0x4409ad
mov eax, dword [ebp - 0x10]
movzx edx, word [esi + 0x7e]
mov dword [ebp - 0x10], edx
and edx, 2
mov dword [ebp - 4], edx
je 0x4409c3
movsx ebx, word [esi + 0x80]
test byte [ebp - 0x10], 4
je 0x4409f8
cmp word [ebp - 4], 0
je 0x4409e6
movsx edx, word [esi + 0x80]
sub ecx, ebx
sub ecx, dword [ebp + 8]
add ecx, edx
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x4409f8
sub ecx, dword [ebp - 0xc]
movsx ebx, word [esi + 0x80]
sub ecx, dword [ebp + 8]
add ebx, ecx
add ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, edx
and ecx, 0x20
je 0x440a09
movsx eax, word [esi + 0x82]
test dl, 0x40
je 0x440a43
test cx, cx
je 0x440a29
movsx ecx, word [esi + 0x82]
sub edi, eax
sub edi, dword [ebp + 0xc]
add edi, ecx
add edi, dword [ebp + 0x14]
mov dword [ebp - 8], edi
jmp 0x440a43
sub edi, dword [ebp - 8]
movsx eax, word [esi + 0x82]
sub edi, dword [ebp + 0xc]
add eax, edi
add eax, dword [ebp + 0x14]
jmp 0x440a43
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0
push ecx
push edx
push eax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov al, byte [esi + 0x88]
test al, al
jne 0x440aae
mov eax, dword [esi]
push 0xffff
push 0
push 0x142
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [0x4a76b4]
jle 0x440867
mov edx, dword [edi]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [edi + 0x188], 1
mov byte [edi + 0x3a], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp al, 0x16
jne 0x440a77
test byte [esi + 0x8a], 0x20
jne 0x440a77
mov ecx, dword [esi + 0x30]
mov edx, dword [esi]
push 0
push ecx
push 0x469
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esi + 0x8b]
cmp al, 0xff
je 0x440a77
mov edi, dword [ebp - 0x14]
movzx eax, al
cmp eax, dword [edi + 0x194]
je 0x440a7a
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x440a7a
movzx eax, word [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 5
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10