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

Disassembly:
push 0xffffffffffffffff
push 0x4bb3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
test esi, esi
push edi
mov dword [esp + 0x10], ecx
jl 0x4a3b42
cmp esi, dword [ecx + 0x104]
jge 0x4a3b42
mov edx, dword [ecx + 0x100]
lea eax, [esi + esi*8]
lea edx, [edx + eax*4]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x7c], ebx
cmp eax, 1
jne 0x4a386e
mov ebp, dword [esp + 0x80]
mov edx, dword [ecx + 0xbc]
mov eax, dword [ebp + 8]
sub eax, dword [edx + esi*4]
mov edx, dword [ebp]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add edi, eax
jmp 0x4a3893
cmp eax, 2
jne 0x4a388c
mov eax, dword [esp + 0x80]
mov edx, dword [ecx + 0xbc]
mov ebp, dword [eax + 8]
sub ebp, dword [edx + esi*4]
mov edx, dword [eax]
sub ebp, edx
add edi, ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [ecx + 0xbc]
mov edx, dword [eax + esi*4]
lea eax, [eax + esi*4]
add edx, edi
cmp edx, dword [ebp]
jl 0x4a3b42
cmp edi, dword [ebp + 8]
jg 0x4a3b42
mov ebp, dword [esp + 0x74]
xor edx, edx
cmp ebp, edx
jne 0x4a38ed
mov ebp, dword [ecx + 0xd0]
mov eax, dword [eax]
add eax, edi
push edx
mov esi, dword [ebp + esi*4]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
lea edx, [esp + 0x38]
add esi, ebx
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], esi
call dword [eax + 0x14]
jmp 0x4a3b42
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], edx
cmp dword [eax + 8], edx
jle 0x4a3b42
mov dword [esp + 0x14], edx
jmp 0x4a390e
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x7c]
xor edx, edx
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x14]
add esi, eax
mov eax, dword [esi + 0x1c]
add edi, eax
mov eax, dword [esp + 0x80]
cmp edi, dword [eax + 8]
jge 0x4a3b42
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x4bd540
mov eax, dword [esi + 0x18]
mov dword [esp + 0x6c], edx
cmp eax, edx
jne 0x4a394a
lea eax, [ecx + 0x2c]
mov cl, byte [esi + 0x20]
push eax
not cl
and cl, 1
mov byte [eax + 0x15], cl
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call dword [edx + 0x30]
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x70], 1
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ebx
lea ebx, [ecx + edi]
mov dword [esp + 0x44], edi
mov ecx, dword [eax + 0x98]
mov dword [esp + 0x4c], ebx
test ecx, ecx
je 0x4a3a14
mov ecx, dword [eax + 0xa0]
mov edx, dword [eax + 0x9c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4a3a10
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
or al, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], edx
jmp 0x4a3a18
mov eax, dword [esp + 0x10]
and dword [esi + 0x20], 0xffffffef
mov edx, dword [esi + 0x20]
test dl, 0x10
je 0x4a3a37
mov ecx, dword [esi + 0x10]
cmp ecx, 0xffffffff
jne 0x4a3a4c
test dl, 1
je 0x4a3a32
mov ecx, dword [eax + 8]
jmp 0x4a3a4c
mov ecx, dword [eax + 0x10]
jmp 0x4a3a4c
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
jne 0x4a3a4c
test dl, 1
je 0x4a3a49
mov ecx, dword [eax + 4]
jmp 0x4a3a4c
mov ecx, dword [eax + 0xc]
test dl, 0x20
je 0x4a3a67
mov edx, dword [esi + 0x14]
cmp edx, 0xffffffff
je 0x4a3a5d
mov eax, edx
jmp 0x4a3a60
mov eax, dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4a3a67
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x4a3a81
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x38]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
mov esi, dword [esi]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov eax, dword [esi - 8]
mov edx, dword [ebp]
lea ecx, [esp + 0x54]
push pe_nt_image_headers32
push ecx
push eax
push esi
mov ecx, ebp
call dword [edx + 0x70]
mov eax, dword [esp + 0x1c]
mov edi, ebx
cmp eax, 0xffffffff
je 0x4a3ac6
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a3ad7
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a3ae8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x2c], 0x4bd504
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + 8]
add esi, 0x24
cmp eax, edx
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x2c], 0x4bd4f0
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], esi
jl 0x4a3904
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10