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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x94
mov dword [eax + 4], edx
mov edx, edi
mov dword [eax + 8], ecx
mov ecx, str.cmap
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov eax, esi
call fcn.00414440
mov ecx, 0x5a6c79
mov edx, edi
mov dword [esp + 0x24], eax
mov eax, esi
call fcn.00414440
mov ecx, str.head
mov edx, edi
mov dword [ebx + 0x10], eax
mov dword [esp + 0x34], eax
mov eax, esi
call fcn.00414440
mov ecx, str.glyf
mov edx, edi
mov dword [ebx + 0x14], eax
mov dword [esp + 0x28], eax
mov eax, esi
call fcn.00414440
mov ecx, str.hhea
mov edx, edi
mov dword [ebx + 0x18], eax
mov ebp, eax
mov eax, esi
call fcn.00414440
mov ecx, str.hmtx
mov edx, edi
mov dword [ebx + 0x1c], eax
mov dword [esp + 0x2c], eax
mov eax, esi
call fcn.00414440
mov ecx, 0x5a6c92
mov edx, edi
mov dword [ebx + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.00414440
mov ecx, str.GPOS
mov edx, edi
mov dword [ebx + 0x24], eax
mov eax, esi
call fcn.00414440
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
sete al
test edx, edx
sete dl
or eax, edx
test ecx, ecx
sete dl
or al, dl
jne 0x418a1f
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x418a30
xor ebp, ebp
add esp, 0x94
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
je 0x418af0
mov edx, dword [esp + 0x34]
test edx, edx
je 0x418a1f
mov edx, edi
mov ecx, 0x5a6ca1
mov eax, esi
call fcn.00414440
mov edx, 0xffff
test eax, eax
jne 0x418dc0
mov edi, dword [esp + 0x24]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x2c], 0xffffffff
lea edx, [esi + edi + 2]
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
mov dword [ebx + 0x30], 0
shl eax, 8
add dx, ax
je 0x418a1f
lea eax, [esi + edi + 4]
movzx edx, dx
lea ecx, [eax + edx*8]
jmp 0x418abb
cmp dx, 3
jne 0x418ab0
movzx edx, byte [eax + 2]
movzx ebp, byte [eax + 3]
shl edx, 8
add edx, ebp
cmp dx, 1
je 0x418aca
cmp dx, 0xa
je 0x418aca
nop
add eax, 8
cmp ecx, eax
je 0x418d90
movzx edx, byte [eax]
movzx ebp, byte [eax + 1]
shl edx, 8
add dx, bp
jne 0x418a90
movzx edx, byte [eax + 4]
movzx ebp, byte [eax + 5]
shl edx, 0x18
shl ebp, 0x10
add edx, ebp
movzx ebp, byte [eax + 6]
shl ebp, 8
add edx, ebp
movzx ebp, byte [eax + 7]
add edx, ebp
add edx, edi
mov dword [ebx + 0x30], edx
jmp 0x418ab0
mov ecx, str.CFF
mov edx, edi
mov eax, esi
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.00414440
test eax, eax
je 0x418a21
add eax, esi
mov dword [ebx + 0x68], 0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x64]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x40], 0x20000000
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
movzx eax, byte [eax + 2]
mov dword [esp + 0x6c], 0x20000000
mov dword [esp + 0x68], eax
mov eax, ecx
call fcn.004184c0
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x64]
mov eax, ecx
call fcn.004184c0
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x70]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
mov eax, ecx
call fcn.00418370
lea ecx, [esp + 0x38]
lea edx, [esp + 0x64]
mov eax, ecx
call fcn.004184c0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x64]
mov eax, ecx
call fcn.004184c0
mov eax, dword [esp + 0x38]
mov ecx, 1
mov edx, 0x11
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
lea eax, [esp + 0x70]
call fcn.00418700
lea eax, [esp + 0x54]
mov ecx, 1
mov edx, 0x106
mov dword [esp], eax
lea eax, [esp + 0x70]
call fcn.00418700
lea eax, [esp + 0x5c]
mov ecx, 1
mov edx, 0x124
mov dword [esp], eax
lea eax, [esp + 0x70]
call fcn.00418700
lea eax, [esp + 0x60]
mov ecx, 1
mov edx, 0x125
mov dword [esp], eax
lea eax, [esp + 0x70]
call fcn.00418700
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, ecx
call fcn.00418840
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x54], 2
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x64], eax
jne 0x418a21
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x418a21
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x418d52
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x418a21
mov edx, 0x20000000
lea ecx, [esp + 0x38]
cmp eax, edx
cmova eax, edx
lea edx, [esp + 0x64]
mov dword [esp + 0x68], eax
mov eax, ecx
call fcn.004184c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, 0x20000000
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
sub edx, ecx
cmp ecx, 0x20000000
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x70], eax
ja 0x418dd8
test edx, edx
js 0x418dd8
mov dword [esp + 0x34], edx
xor eax, eax
cmp edx, edx
jg 0x418d4c
mov eax, dword [esp + 0x2c]
mov ebp, edx
add eax, dword [esp + 0x30]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x7c], ebp
mov eax, 0x20000000
lea edx, [esp + 0x64]
cmp ecx, eax
cmovbe eax, ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x38]
call fcn.004184c0
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x4c], eax
jmp 0x418a40
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x418a1f
mov eax, dword [esp + 0x28]
mov ebp, 1
lea edx, [esi + eax + 0x32]
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x34], eax
jmp 0x418a21
lea eax, [esi + eax + 4]
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
shl edx, 8
add edx, eax
movzx edx, dx
jmp 0x418a5b
xor eax, eax
jmp 0x418d4c