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

Disassembly:
sub esp, 0x54
pushal
mov dword [esp + 0x30], ebx
mov ebx, eax
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0xf7]
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], edx
mov esi, dword [esp + 0x84]
mov dword [esp + 0x68], esi
add edx, dword [esp + 0x80]
mov dword [esp + 0x6c], edx
mov ecx, dword [ebx + 0x10]
imul ecx, eax
add esi, ecx
mov dword [esp + 0x70], esi
mov eax, dword [ebx + 0x14]
call fcn.00501cfc
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
and eax, 0x4010
cmp eax, 0x10
sete al
movzx esi, al
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0xc]
cmp dword [esp + 0x70], ecx
jge 0x43cf7e
mov ecx, dword [esp + 0x70]
jmp 0x43cf81
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
push eax
lea edi, [esp + 0x68]
push edi
lea eax, [esp + 0x5c]
mov dword [esp + 0x4c], eax
push eax
call sub.USER32.dll_IntersectRect
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x54], eax
jg 0x43d136
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x58], eax
jg 0x43d136
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x7c]
add ecx, dword [eax + 0x107]
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x28]
mov eax, edx
mov ebx, 0xa
call fcn.004eb904
cmp eax, 0
je 0x43cfed
mov ebx, edx
sub eax, ebx
mov dword [esp + 0x2c], eax
jmp 0x43cff8
mov eax, edx
call fcn.00420750
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx + 4]
and ebx, 0xc
cmp ebx, 0
jne 0x43d018
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
jmp 0x43d0ae
cmp ebx, 0xc
jne 0x43d056
mov eax, edx
mov ebx, 0xffffffff
mov cl, 0
call fcn.00517128
cmp eax, 0
jne 0x43d034
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x4c]
push ebx
push eax
push edx
push dword [esp + 0x48]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x38]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x43d0ae
cmp ebx, 4
jne 0x43d07d
lea ebx, [esp + 0x4c]
push ebx
push eax
push edx
push dword [esp + 0x48]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x38]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x43d0ae
cmp ebx, 8
jne 0x43d0ae
lea ebx, [esp + 0x4c]
push ebx
push eax
push edx
push dword [esp + 0x48]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x64]
sub eax, dword [esp + 0x4c]
mov ebx, 2
cdq
idiv ebx
add eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov eax, ecx
add eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
cmp eax, ebx
jge 0x43d0c6
jmp 0x43d0c8
mov eax, ebx
mov dword [esp + 0x60], eax
push 0
mov eax, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
push dword [esp + 0x50]
push 6
push ecx
push dword [esp + 0x60]
push ebp
call sub.GDI32.dll_ExtTextOutA
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea eax, [eax + ecx]
mov ecx, dword [esp + 0x40]
add dword [esp + 0x24], ecx
inc eax
mov dword [esp + 0x28], eax
cmp byte [eax - 1], 0
jne 0x43cfce
cmp esi, 0
je 0x43d136
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [0x595f58]
add dword [esp + 0x6c], eax
mov eax, dword [0x595a64]
call fcn.004f6380
push eax
push edi
push ebp
call sub.USER32.dll_FillRect
popal
add esp, 0x54
ret 0x10