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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov esi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
cmp edx, 0x7f
jle 0x47b7b0
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x47b7c0
xor edi, edi
xor ebx, ebx
mov ebp, dword [esp + 0x28]
jmp 0x47b78d
inc ebx
add edi, 0xc
cmp dword [esi + 0x74], ebx
jle 0x47b7c0
mov eax, dword [esi + 0x78]
add eax, edi
mov edx, ebp
call fcn.0047abb8
test eax, eax
je 0x47b784
add edi, dword [esi + 0x78]
mov eax, edi
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 0x78]
mov eax, edi
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x1f0]
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call sub.USER32.dll_GetDC
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.00431f28
mov dword [esp + 0x24], eax
call fcn.00431f7c
mov ebp, eax
mov eax, dword [eax]
lea edx, [ebp + 4]
mov dword [esp + 0x20], edx
test eax, eax
je 0x47b910
mov edi, dword [eax]
test edi, edi
je 0x47b8f8
mov dword [esp + 0x18], 4
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x47b86e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47b958
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
je 0x47b958
mov ebx, edx
add ebx, 4
jmp 0x47b85e
add ebx, 4
mov eax, dword [ebx - 4]
test eax, eax
je 0x47b958
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__stricmp_1
test eax, eax
jne 0x47b850
mov eax, dword [ebp]
mov ecx, dword [eax]
mov ebx, 4
test ecx, ecx
je 0x47b8f8
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
jmp 0x47b899
mov eax, dword [ebp]
mov ecx, dword [eax + ebx]
add ebx, 4
test ecx, ecx
je 0x47b8f4
mov dword [esp + 8], edi
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.0047b6a0
test eax, eax
je 0x47b88c
mov edi, eax
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x4c]
mov dword [esp], edx
mov eax, dword [0x67eb7c]
call dword [eax + 0x1e8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
mov eax, edi
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
add dword [esp + 0x20], 4
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 4]
test eax, eax
jne 0x47b809
call fcn.00431f84
mov ecx, dword [eax]
lea ebx, [eax + 4]
test ecx, ecx
je 0x47b973
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
jmp 0x47b932
add ebx, 4
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x47b973
mov dword [esp + 8], edi
lea edx, [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp], ebp
mov edx, esi
mov eax, dword [esp + 0x1c]
call fcn.0047b6a0
test eax, eax
je 0x47b928
mov edi, eax
jmp 0x47b8bf
mov eax, dword [ebp]
mov edx, dword [esp + 0x18]
mov edi, dword [eax + edx]
add edx, 4
mov dword [esp + 0x18], edx
test edi, edi
jne 0x47b81b
jmp 0x47b8f8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
call fcn.004337fc
cmp eax, 2
je 0x47ba2e
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x47bcc0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.GDI32.dll_EnumFontFamiliesA
sub esp, 0x10
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x4c]
mov dword [esp], edx
mov eax, dword [0x67eb7c]
call dword [eax + 0x1e8]
test edi, edi
jne 0x47b8d1
mov edi, dword [esi + 0x78]
mov ecx, dword [esp + 0x28]
sar ecx, 0xa
lea ebx, [ecx*4]
mov eax, dword [edi]
mov edx, dword [eax + ebx]
test edx, edx
je 0x47ba5a
mov eax, dword [esp + 0x28]
and eax, 0x3ff
sar eax, 3
mov ecx, dword [esp + 0x28]
and ecx, 7
mov ebx, 1
shl ebx, cl
or byte [edx + eax], bl
jmp 0x47b8d1
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x47bcc0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.GDI32.dll_EnumFontFamiliesW
sub esp, 0x10
jmp 0x47b9d4
lea edx, [edi + 8]
mov eax, edi
call fcn.0047a9e8
mov eax, dword [edi]
mov edx, dword [eax + ebx]
jmp 0x47ba0c