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

Disassembly:
sub esp, 0x68
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x20], edi
mov esi, dword [edi + 0x688]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], eax
test esi, esi
jne 0x4d8d8f
mov dword [ebp], esi
mov dword [eax], esi
mov dword [edx], esi
pop edi
mov dword [ecx], esi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00515f8b
add esp, 0x68
ret 0x18
cmp dword [0x59ca90], 0
mov ebp, dword [edi + 0x6a8]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0xfff0bdc1
jne 0x4d8de8
push str.GDI32.DLL
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x4d8dde
push str.GetGlyphIndicesW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x59ca8c], eax
mov dword [0x59ca90], 0xffffffff
cmp dword [0x59ca8c], 0
push ebx
je 0x4d90a9
test ebp, ebp
jne 0x4d8e2d
call fcn.004970c0
test eax, eax
je 0x4d8e1a
call fcn.004970c0
test eax, eax
je 0x4d8e1a
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x4d8e1a
mov eax, dword [eax]
jmp 0x4d8e1c
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
je 0x4d90a9
push dword [0x59ca9c]
push dword [0x59ca94]
push dword [esp + 0x88]
push dword [esp + 0x34]
call fcn.004d4690
mov ebx, eax
add esp, 0x10
cmp ebx, dword [0x59ca9c]
jb 0x4d8edd
mov eax, dword [0x59ca94]
test eax, eax
je 0x4d8e6c
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [0x59ca98]
test eax, eax
je 0x4d8e7e
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
lea eax, [ebx + 0x40]
xor ecx, ecx
mov dword [0x59ca9c], eax
mov ebx, 2
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov dword [0x59ca94], eax
xor ecx, ecx
mov eax, dword [0x59ca9c]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
push dword [0x59ca9c]
mov dword [0x59ca98], eax
push dword [0x59ca94]
push dword [esp + 0x90]
push dword [esp + 0x3c]
call fcn.004d4690
add esp, 0x18
mov ebx, eax
push dword [esi + 0x18]
push ebp
call dword [sym.imp.gdi32.dll_SelectObject]
xor eax, eax
test ebx, ebx
je 0x4d8f19
mov edx, dword [0x59ca94]
mov esi, 0xd800
mov dword [esp + 0x38], 0xe000
movzx ecx, word [edx + eax*2]
cmp cx, si
jb 0x4d8f14
cmp cx, word [esp + 0x38]
jb 0x4d8fc4
inc eax
cmp eax, ebx
jb 0x4d8f00
push 1
push dword [0x59ca98]
push ebx
push dword [0x59ca94]
push dword [edi + 0x6a8]
call dword [0x59ca8c]
cmp eax, 0xffffffff
je 0x4d90a9
xor esi, esi
test ebx, ebx
je 0x4d9032
push 0x570478
push 0
push 0
lea eax, [esp + 0x6c]
push eax
mov eax, dword [0x59ca98]
push 0x80
movzx eax, word [eax + esi*2]
push eax
push ebp
call dword [sym.imp.gdi32.dll_GetGlyphOutlineW]
cmp eax, 0xffffffff
je 0x4d90a5
mov dx, word [esp + 0x70]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
movsx eax, dx
add dword [esp + 0x1c], eax
test esi, esi
mov eax, dword [esp + 0x18]
cmove eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
sub eax, ecx
cmp eax, dword [esp + 0x10]
cmovle eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
cmovl eax, ecx
inc esi
mov dword [esp + 0x20], eax
cmp esi, ebx
jb 0x4d8f47
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x4d903b
mov edi, dword [0x59ca9c]
mov esi, dword [0x59ca98]
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.00518d30
add esp, 0xc
mov dword [esp + 0x50], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], 0
xorps xmm0, xmm0
mov dword [esp + 0x54], esi
movlpd qword [esp + 0x40], xmm0
push 0x10
push eax
push 0
push ebx
push dword [0x59ca94]
movlpd qword [esp + 0x5c], xmm0
push ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x54], 0x24
call dword [sym.imp.gdi32.dll_GetCharacterPlacementW]
test eax, eax
je 0x4d90a5
mov ebx, dword [esp + 0x58]
jmp 0x4d8f3d
mov dx, word [esp + 0x70]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
movsx eax, dx
mov edx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, edx
add ecx, edi
mov edi, dword [esp + 0x2c]
add ecx, dword [esp + 0x1c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [ebx], eax
neg ecx
mov dword [ebp], edx
mov dword [edi], ecx
mov esi, dword [0x59b5c0]
test esi, esi
jne 0x4d9086
call fcn.004cd2c0
mov esi, eax
call fcn.004cd2c0
cmp esi, eax
je 0x4d912a
mov eax, dword [esp + 0x24]
push dword [eax + 0x6a8]
push ebx
push dword [esp + 0x1c]
push edi
jmp 0x4d9121
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x80]
push dword [esp + 0x2c]
mov eax, dword [eax + 0x160]
call eax
call fcn.00516400
mov esi, dword [esp + 0x14]
mov ecx, edi
mov dword [esi], eax
mov eax, dword [edi]
call dword [eax + 0x20c]
mov ebx, dword [esp + 0x30]
mov ecx, edi
mov ebp, dword [esp + 0x34]
mov dword [ebx], eax
mov dword [ebp], 0
mov eax, dword [edi]
call dword [eax + 0x210]
mov ecx, dword [esp + 0x2c]
sub eax, dword [ebx]
mov dword [ecx], eax
mov esi, dword [0x59b5c0]
test esi, esi
jne 0x4d9109
call fcn.004cd2c0
mov esi, eax
call fcn.004cd2c0
cmp esi, eax
je 0x4d912a
push dword [edi + 0x6a8]
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x38]
push ebp
call fcn.004d8af0
add esp, 0x14
mov ecx, dword [esp + 0x74]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00515f8b
add esp, 0x68
ret 0x18