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

Disassembly:
sub esp, 0xc0
pushal
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edi, dword [eax + 8]
mov dword [esp + 0x54], edi
mov esi, dword [esp + 0xe4]
cmp esi, 0
je 0x4538c2
mov esi, dword [esi + 4]
or ecx, esi
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0xe4]
mov esi, dword [esi + 8]
or edi, esi
mov dword [esp + 0x54], edi
mov esi, 0xc
mov edi, dword [eax + esi + 0x20]
mov dword [esp + esi + 0xd0], edi
sub esi, 4
jae 0x4538c7
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x68], eax
mov edi, 4
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0xe8]
add dword [esp + 0xd0], eax
mov eax, dword [esp + 0xf4]
mov esi, eax
and esi, 4
mov dword [esp + 0x30], esi
cmp esi, 0
jne 0x453921
mov esi, dword [esp + 0xe8]
sub dword [esp + 0xd8], esi
mov esi, dword [esp + 0x30]
cmp esi, 0
je 0x45394a
mov eax, ecx
shr eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], eax
or edi, 2
mov dword [esp + 0x84], edi
jmp 0x45395c
and eax, 2
cmp eax, 0
jne 0x45395c
or edi, 2
mov dword [esp + 0x84], edi
and ecx, 0x4000
mov dword [esp + 0x4c], ecx
cmp ecx, 0
je 0x453979
mov eax, dword [esp + 0x10c]
add dword [esp + 0xd8], eax
push dword [esp + 0x110]
sub edx, dword [esp + 0x110]
push edx
lea eax, [esp + 0xd8]
mov dword [esp + 0x58], eax
push eax
call sub.USER32.dll_OffsetRect
mov eax, 0
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x34]
mov edx, ecx
and edx, 0x10
cmp edx, 0
jne 0x4539cd
jmp 0x4539f0
mov edx, dword [esp + 0xf0]
and edx, 0x4010
cmp edx, 0
jne 0x4539f0
jmp 0x4539d4
cmp esi, 0
je 0x453a1c
jmp 0x453a25
cmp dword [esp + 0x4c], 0
jne 0x4539b2
mov edx, dword [esp + 0xf8]
mov edx, dword [edx + 8]
cmp dword [esp + 0xd8], edx
jge 0x4539f0
mov eax, 1
mov dword [esp + 0x70], eax
mov edx, 0
mov dword [esp + 0x78], edx
and ecx, 0x20
cmp ecx, 0
jne 0x4539c6
jmp 0x453a25
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0xc4], eax
jl 0x453ba3
jmp 0x453d02
mov edx, 1
mov dword [esp + 0x78], edx
cmp eax, 0
je 0x453a36
mov eax, dword [0x78d9a0]
sub dword [esp + 0xd8], eax
mov eax, dword [esp + 0xfc]
mov eax, dword [eax + 0x129]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xbc], eax
cmp esi, 0
jne 0x453d0a
cmp edx, 0
je 0x453a7d
mov eax, dword [0x78d9a0]
add dword [esp + 0xdc], eax
mov eax, dword [esp + 0xdc]
sub eax, dword [esp + 0xd4]
mov dword [esp + 0x44], eax
imul eax, eax, 5
mov ecx, 4
cdq
idiv ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
and eax, 0x8000
cmp eax, 0
je 0x453b08
push ebx
call sub.GDI32.dll_SaveDC
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push ecx
mov eax, dword [eax]
push eax
push ebx
call sub.GDI32.dll_IntersectClipRect
push dword [esp + 0x44]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push dword [esp + 0xf8]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x50]
call fcn.004783a8
push 0xffffffffffffffff
push ebx
call sub.GDI32.dll_RestoreDC
mov eax, dword [esp + 0x34]
and eax, 0x800
cmp eax, 0
je 0x453d0a
push ebx
call sub.GDI32.dll_SaveDC
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x40]
add dword [esp + 0xd0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xb0], eax
push dword [esp + 0xf8]
lea eax, [esp + 0xac]
mov dword [esp + 0x5c], eax
push eax
lea eax, [esp + 0xc8]
push eax
call sub.USER32.dll_IntersectRect
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xc0], eax
jl 0x453a03
jmp 0x453d02
cmp ecx, 0
je 0x453be3
jmp 0x453bef
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push ebx
call sub.GDI32.dll_IntersectClipRect
mov eax, dword [esp + 0xec]
cmp eax, 0
pushfd
mov ecx, dword [esp + 0x58]
and ecx, 0x100
mov dword [esp + 0x68], ecx
popfd
jne 0x453b9c
jmp 0x453bef
call fcn.0050eac4
push eax
push ebx
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0
push dword [esp + 0x64]
push edi
push dword [esp + 0xc0]
push dword [esp + 0xc0]
push ebx
call sub.GDI32.dll_ExtTextOutA
mov ecx, dword [esp + 0x108]
cmp ecx, 0
je 0x453d02
mov eax, ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov eax, ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0xa8]
sub eax, edx
mov edi, 2
cdq
idiv edi
mov edx, dword [esp + 0x2c]
add edx, eax
mov dword [esp + 0x98], edx
mov eax, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xac]
sub eax, dword [esp + 0x5c]
mov edi, 2
cdq
idiv edi
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x60]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x5c]
mov dword [esp + 0xa4], eax
cmp dword [esp + 0x64], 0
je 0x453ccc
mov eax, ecx
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x108]
call dword [edx + 0x38]
mov eax, ecx
mov edi, dword [eax + 4]
mov ebx, 0
mov ecx, 0
mov edx, 0
call dword [edi + 0x2c]
push 0
mov eax, dword [esp + 0x10c]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x9c]
mov edi, dword [eax + 4]
mov edx, 0
call dword [edi + 0x10]
push 0xffffffffffffffff
push ebx
call sub.GDI32.dll_RestoreDC
mov ebx, dword [esp + 0xf8]
push ebx
mov edi, dword [esp + 0x54]
push edi
lea eax, [esp + 0xc8]
mov dword [esp + 0x88], eax
push eax
call sub.USER32.dll_IntersectRect
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xc0], eax
jg 0x454029
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0xc4], eax
jg 0x454029
mov eax, dword [ebx + 0xc]
cmp dword [esp + 0xdc], eax
jge 0x453d68
mov eax, dword [esp + 0xdc]
jmp 0x453d6b
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0xd4]
mov eax, dword [esp + 0xfc]
add ebx, dword [eax + 0x139]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x100]
mov eax, ebx
call fcn.0042f564
mov edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x3c]
and eax, 3
cmp eax, 0
jne 0x453dc1
mov eax, dword [esp + 0xd0]
add eax, dword [esp + 0x68]
mov dword [esp + 0x8c], eax
jmp 0x453ea1
cmp eax, 3
jne 0x453e15
mov eax, ebx
mov ebx, edx
mov ecx, dword [esp + 0x48]
mov cl, byte [ecx + 0x58]
call fcn.005341b4
cmp eax, 0
jne 0x453ddd
mov eax, edx
lea ebx, [esp + 0x90]
push ebx
push eax
mov ebx, dword [esp + 0x108]
push ebx
push dword [esp + 0x78]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0xd8]
sub eax, dword [esp + 0x68]
sub eax, dword [esp + 0x90]
mov dword [esp + 0x8c], eax
jmp 0x453ea1
cmp eax, 1
jne 0x453e48
lea eax, [esp + 0x90]
push eax
push edx
push ebx
push dword [esp + 0x78]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0xd8]
sub eax, dword [esp + 0x68]
sub eax, dword [esp + 0x90]
mov dword [esp + 0x8c], eax
jmp 0x453ea1
cmp eax, 2
jne 0x453ea1
lea eax, [esp + 0x90]
push eax
push edx
push ebx
push dword [esp + 0x78]
call sub.GDI32.dll_GetTextExtentPoint32A
mov eax, dword [esp + 0xd8]
add eax, dword [esp + 0xd0]
cmp esi, 0
je 0x453e8b
mov ecx, dword [esp + 0xe8]
sub eax, ecx
cmp dword [esp + 0x70], 0
je 0x453e8b
mov ecx, dword [0x78d9a0]
add eax, ecx
sub eax, dword [esp + 0x90]
mov ecx, 2
cdq
idiv ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd4]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jge 0x453ee2
mov ecx, eax
jmp 0x453ee2
cmp dword [esp + 0x78], 0
jne 0x453f2f
jmp 0x454029
cmp dword [esp + 0x7c], 0
je 0x453f72
jmp 0x453fb7
mov dword [esp + 0xcc], ecx
cmp dword [esp + 0xcc], eax
setl al
movzx eax, al
mov dword [esp + 0x7c], eax
push 0
mov eax, dword [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x8c]
push dword [esp + 0x94]
push dword [esp + 0x9c]
push dword [esp + 0xa4]
mov ebx, dword [esp + 0x40]
push ebx
call sub.GDI32.dll_ExtTextOutA
cmp dword [esp + 0x70], 0
je 0x453ec6
push ebx
call sub.GDI32.dll_SaveDC
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push ecx
mov eax, dword [eax]
push eax
push ebx
call sub.GDI32.dll_IntersectClipRect
mov eax, dword [esp + 0xfc]
mov eax, dword [eax + 0x1be]
push eax
push ebx
call sub.GDI32.dll_SetBkColor
cmp dword [esp + 0x78], 0
jne 0x453ed2
jmp 0x453fb7
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
sub ecx, dword [0x78d9a0]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], eax
push 0
push 0
push 0
push edi
push 2
push dword [esp + 0xe8]
push dword [esp + 0xe8]
push ebx
call sub.GDI32.dll_ExtTextOutA
cmp dword [esp + 0x70], 0
je 0x454021
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xd0], eax
mov eax, dword [0x78d9a0]
add dword [esp + 0xd8], eax
cmp esi, 0
je 0x454004
push 6
call sub.USER32.dll_GetSysColor
push eax
push ebx
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0
push edi
push 2
push dword [esp + 0xe8]
push dword [esp + 0xe8]
push ebx
call sub.GDI32.dll_ExtTextOutA
push 0xffffffffffffffff
push ebx
call sub.GDI32.dll_RestoreDC
popal
add esp, 0xc0
ret 0x30