Function at 0x446386
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 0x4bc808
call fcn.004369f4
mov ecx, dword [0x4bc868]
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 0x4463ce
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
jle 0x4466a3
cmp dword [ebp + 0xc], 0
jle 0x4466a3
cmp dword [ebp + 0x10], 0
jle 0x4466a3
cmp dword [ebp + 0x14], 0
jle 0x4466a3
cmp ebx, 1
je 0x4466a3
mov eax, 3
mov dword [ebp - 0x18], eax
cmp dword [0x4bc88c], eax
jl 0x44663c
lea ecx, [ecx]
mov edx, dword [0x4bc87c]
mov eax, dword [edx + eax*4]
mov esi, dword [eax]
test esi, esi
je 0x446629
mov ecx, dword [esi + 4]
cmp ecx, dword [edi + 4]
jne 0x446629
cmp dword [esi], 0
je 0x446629
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 0x4465ec
test eax, 0x100
je 0x4464f5
mov dword [ebp - 0xc], ecx
test al, 6
jne 0x4464f5
test al, 8
mov eax, dword [ebp + 0x10]
je 0x4464c4
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 0x4464f8
mov ebx, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x4464f8
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 0x4464f8
mov ebx, dword [ebp - 4]
movzx eax, word [esi + 0x7e]
test eax, 0x200
je 0x446559
mov dword [ebp - 8], edi
test al, 0x60
jne 0x446559
test al, al
mov eax, dword [ebp + 0x14]
jns 0x446524
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
movsx edx, word [esi + 0x82]
sar eax, 1
add eax, edx
jmp 0x44655c
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x10]
sar edx, 1
cmp eax, edx
jle 0x44655c
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 0x44655c
mov eax, dword [ebp - 0x10]
movzx edx, word [esi + 0x7e]
mov dword [ebp - 0x10], edx
and edx, 2
mov dword [ebp - 4], edx
je 0x446572
movsx ebx, word [esi + 0x80]
test byte [ebp - 0x10], 4
je 0x4465a7
cmp word [ebp - 4], 0
je 0x446595
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 0x4465a7
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 0x4465b8
movsx eax, word [esi + 0x82]
test dl, 0x40
je 0x4465f2
test cx, cx
je 0x4465d8
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 0x4465f2
sub edi, dword [ebp - 8]
movsx eax, word [esi + 0x82]
sub edi, dword [ebp + 0xc]
add eax, edi
add eax, dword [ebp + 0x14]
jmp 0x4465f2
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 0x44665d
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 [0x4bc88c]
jle 0x446416
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 0x446626
test byte [esi + 0x8a], 0x20
jne 0x446626
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 0x446626
mov edi, dword [ebp - 0x14]
movzx eax, al
cmp eax, dword [edi + 0x194]
je 0x446629
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x446629
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