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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov ebp, eax
mov dword [esp + 0x38], edx
mov edi, ecx
mov eax, dword [edx + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.GDI32.dll_GetTextMetricsA
sub esp, 8
mov edx, dword [esp + 0x180]
add edx, edi
mov dword [esp + 0x34], edx
cmp edi, edx
jae 0x47bca0
mov ebx, edi
jmp 0x47bb01
mov dword [esp + 0x48], esi
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.GDI32.dll_SelectObject
sub esp, 8
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.GDI32.dll_GetTextMetricsA
sub esp, 8
mov edi, ebx
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x34], ebx
jbe 0x47bc10
lea ecx, [esp + 0x46]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov eax, dword [0x67eb7c]
call dword [eax + 0x548]
add eax, ebx
mov dword [esp + 0x30], eax
movzx edx, word [esp + 0x46]
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x38]
call fcn.0047b758
mov esi, eax
mov eax, dword [esp + 0x48]
cmp esi, eax
je 0x47baf3
cmp edi, ebx
jae 0x47bac8
mov edx, dword [eax + 8]
lea eax, [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
sub eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [edx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
mov dword [esp + 0x2c], edx
call dword [eax + 0x53c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x14]
mov eax, dword [esp + 0x90]
sar eax, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x188]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x74]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov ecx, dword [esp + 0x184]
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], ebp
call dword [edx + 0x18]
sub esp, 0x14
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x14]
mov eax, dword [esp + 0x90]
sar eax, cl
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [edx + 0x1c]
sub esp, 0x10
mov edx, dword [esp + 0x4c]
add dword [esp + 0x184], edx
lea ecx, [esp + 0x8c]
mov dword [esp], ecx
mov eax, dword [0x67eb7c]
call dword [eax + 0x1e8]
jmp 0x47bac8
cmp ebx, edi
jbe 0x47bca0
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 8]
lea esi, [esp + 0x8c]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
sub eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x53c]
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x90]
sar eax, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x188]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x74]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov ecx, dword [esp + 0x184]
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], ebp
call dword [ebx + 0x18]
sub esp, 0x14
mov dword [esp], esi
mov eax, dword [0x67eb7c]
call dword [eax + 0x1e8]
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.GDI32.dll_SelectObject
sub esp, 8
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret