Function at 0x461c64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0x42], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
cmp dword [ebp - 0xc], 0
jle 0x462287
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
call fcn.00457028
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
call fcn.0045889c
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2c]
call fcn.00455c14
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
call fcn.004570a8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00415f14
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x461e65
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
call fcn.004587b0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
call fcn.004570a8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 0x38]
add al, 0xfd
sub al, 2
jae 0x461e27
cmp byte [ebp - 0x42], 0
je 0x461df0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x3c]
add ecx, dword [eax + 0x50]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 0x10]
mov eax, dword [ebp - 0x3c]
call fcn.00458234
jmp 0x462271
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x3c]
add ecx, dword [eax + 0x50]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 0x10]
mov eax, dword [ebp - 0x3c]
call fcn.00458234
jmp 0x462271
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 0x10]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
call fcn.00458234
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
add dword [ebp - 0x28], eax
mov byte [ebp - 0x42], 0
jmp 0x462271
cmp dword [ebp - 0x24], 0xffffffff
jne 0x461fcd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2c]
call fcn.00455ba8
mov edx, dword [ebp + 0xc]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
cmp dword [eax + 0x20], 0
je 0x461fc4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov byte [eax + 0x24], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
cmp byte [eax + 0x1c], 0
je 0x461edb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
sub eax, dword [edx + 0x3c]
sub eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0x18]
mov dword [ebp - 0x38], eax
jmp 0x461ef0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
sub eax, dword [edx + 0x3c]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x461f1c
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
jmp 0x461fbb
mov eax, dword [ebp - 0x4c]
call fcn.0042bff8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
call fcn.0042b31c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
call fcn.0042b33c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov edx, dword [0x456344]
call fcn.00403058
test al, al
je 0x461fbb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x28], 0
je 0x461f85
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x20]
mov edx, dword [0x44b7f0]
call fcn.00403070
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 0x14]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x2c]
call fcn.0042bcb4
jmp 0x461fad
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x20]
mov edx, dword [0x44b7f0]
call fcn.00403070
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0xc8]
call fcn.0042bcb4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x38]
add dword [ebp - 0x28], eax
mov byte [ebp - 0x42], 0
jmp 0x462271
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0046b6e4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0046b6e4
mov dword [ebp - 0x14], eax
push ebp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
push dword [eax + 0x1c]
mov eax, dword [ebp - 8]
pop edx
sub eax, edx
lea edx, [ebp - 0x20]
call fcn.00461ba4
pop ecx
mov byte [ebp - 0x41], al
mov edx, dword [ebp - 0x20]
dec edx
mov eax, dword [ebp - 0x14]
call fcn.0046b6e4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
inc edx
mov eax, dword [ebp - 0xc]
call fcn.0046b6e4
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x41], 0
je 0x462075
push 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x14]
call fcn.004156ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xc8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00414f1c
jmp 0x462088
push 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x462121
push 0x18
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_GetDeviceCaps
sub eax, 3
jae 0x4620c3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.00414f1c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x9a], 0
jne 0x462121
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x4620ff
mov eax, dword [ebp - 0x48]
push eax
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
and eax, 0xe0e0
cmp eax, 0xe0e0
jne 0x462121
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xc]
mov edx, 0x2a0a0a0
call fcn.00414f1c
push 0x18
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_SetTextAlign
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [0x453e80]
call fcn.00403058
test al, al
je 0x4621d3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
add ecx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
sub edx, dword [eax - 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call fcn.0040d000
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x5c]
push eax
push 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0x18]
push eax
mov eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x4621ba
adc eax, 0
mov edx, dword [ebp - 0x28]
sub edx, eax
push edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_ExtTextOutA
jmp 0x46224e
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x24], 0
jne 0x4621e3
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x462212
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x24], 2
jne 0x462201
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
mov ecx, 3
cdq
idiv ecx
neg eax
mov dword [ebp - 0x34], eax
jmp 0x462212
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
sar eax, 1
jns 0x46220e
adc eax, 0
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0x18]
push eax
mov eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x462237
adc eax, 0
mov edx, dword [ebp - 0x28]
sub edx, eax
push edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
push eax
call sub.gdi32.dll_TextOutA
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x10]
call fcn.00416018
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0046bd94
add eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x42], 0
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jg 0x461cac
pop ebx
mov esp, ebp
pop ebp
ret 4