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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x4c]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x4aac24]
push 0x18
push eax
mov dword [esp + 0x24], edi
mov esi, edx
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
xor ebx, ebx
cmp eax, 0x18
jne 0x414acf
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
jmp 0x414ad3
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x40], eax
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
mov eax, esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
call fcn.0042cb80
push 0x6e3b12
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
xor ecx, ecx
cmp dword [edi + 0xe0], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x14], ecx
jle 0x414d19
mov edx, dword [esp + 0x1c]
lea eax, [edx*4 + 0x4931a0]
mov dword [esp + 0x20], eax
jmp 0x414b4c
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp ecx, ebx
jl 0x414d97
cmp ecx, dword [edi + 0xe0]
jge 0x414d97
mov edx, dword [edi + 0xdc]
mov eax, dword [edx + ecx*4]
cmp eax, ebx
je 0x414d19
mov edx, dword [esp + 0x1c]
add ecx, edx
cmp ecx, 0x10
jge 0x414d19
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x30], edx
cmp dword [eax + 0x1c], ebx
je 0x414ba8
mov ecx, 8
test dword [eax + 0x18], 0x8000000
je 0x414bb6
or ecx, 4
jmp 0x414bca
cmp dword [edi + 0x28], eax
jne 0x414bc2
mov eax, dword [edi + 0x34]
or eax, ecx
jmp 0x414bcc
cmp dword [edi + 0x2c], eax
jne 0x414bca
or ecx, 0x40
mov eax, ecx
xor edi, edi
test al, 4
jne 0x414be6
test al, 0x40
je 0x414bdd
mov edi, 1
jmp 0x414be6
test al, 1
je 0x414be6
mov edi, 2
mov eax, 3
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push eax
lea ebx, [esp + 0x38]
call fcn.00402b10
imul edi, ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x40]
sub edx, ecx
push ebp
inc edx
push edx
mov edx, dword [esp + 0x3c]
sub edx, eax
push edx
push eax
lea ebx, [ecx - 1]
push esi
lea eax, [esp + 0x8c]
call fcn.00408b30
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
add esp, 0x1c
cmp ebp, eax
je 0x414c82
mov edi, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push eax
push edi
call ebx
test ebp, ebp
je 0x414c7b
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add edx, 2
add ecx, 4
mov dword [esp + 0x4c], edx
mov edx, dword [ebp]
add eax, 0xfffffffc
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
push edx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x84]
add ecx, 0xfffffffe
push 0x4931e0
push eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x4aac3c]
add esp, 0xc
push ecx
push esi
call ebx
push 0x824
lea edx, [esp + 0x4c]
push edx
mov edi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
push esi
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add ebp, 4
xor ebx, ebx
cmp eax, dword [ecx + 0xe0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
jl 0x414b40
mov edx, dword [esp + 0x68]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x60]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 7
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
lea ecx, [esp + 0x48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jge 0x414d52
neg ecx
imul ecx, dword [esp + 0x4c]
cmp ecx, ebx
mov esi, dword [esp + 0x64]
mov eax, esi
jle 0x414d75
mov dl, byte [eax]
mov edi, dword [esp + 0x5c]
mov byte [edi + 3], dl
add dword [esp + 0x5c], 4
inc eax
sub ecx, 1
jne 0x414d61
push esi
call fcn.0046f011
mov ecx, dword [esp + 0xc8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f01c
add esp, 0xbc
ret
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]