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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x2c]
push esi
test ebp, ebp
je 0x10089ace
cmp dword [ebp + 0x58], 0
je 0x10089ace
mov esi, dword [ebp + 0x54]
test esi, esi
je 0x10089ace
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x10089490
test byte [eax + 4], 1
je 0x10089490
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x58]
mov eax, dword [eax + 0x64]
test ecx, ecx
je 0x1008947d
push ecx
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x58], 0
and dword [eax + 4], 0xfffffffe
jmp 0x10089497
mov dword [esi + 0x58], 0
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
push ebx
movups xmmword [esi + 0x28], xmm0
push edi
movups xmmword [esi + 0x6c], xmm0
mov dword [esi + 0x7c], 0
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x5e], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
test dword [ecx + 8], 0x10000
jne 0x1008951d
mov dword [esi + 0x98], 0
jmp 0x10089552
mov eax, dword [esi + 0x9c]
test byte [eax + 4], 2
je 0x10089552
mov edi, dword [esi + 0x98]
mov eax, dword [ecx + 0x64]
mov ecx, dword [edi]
test ecx, ecx
je 0x10089542
push ecx
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov dword [edi], 0
mov eax, dword [esi + 0x9c]
and dword [eax + 0x28], 0xfffffffd
mov dword [esi + 0x48], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov edi, dword [ebp + 0x60]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x58]
cmp word [eax + 0xc], 0
je 0x100895b0
cmp word [eax + 0xe], 0
je 0x100895b0
mov edx, dword [esp + 0x40]
jmp 0x100895b7
mov edx, dword [esp + 0x40]
or edx, 1
mov ecx, edx
or ecx, 0x801
test edx, 0x400
cmove ecx, edx
test cl, 1
je 0x100895d3
and ecx, 0xfffffffb
or ecx, 0xa
mov ebx, ecx
and ebx, 0xfffffffb
test ecx, 0x400000
cmove ebx, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
je 0x1008961a
test ebx, 0x8002
jne 0x1008961a
mov eax, dword [ebp + 8]
and eax, 0x2001
cmp eax, 1
jne 0x1008961a
test ebx, 0x800
jne 0x10089671
mov eax, dword [ebp + 0x80]
cmp dword [eax + 8], 0
jne 0x1008966c
cmp dword [eax], 0
jne 0x10089671
mov eax, dword [edi + 0xc]
push ebx
push dword [esp + 0x40]
push dword [ebp + 0x58]
mov eax, dword [eax + 0x48]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10089ac6
cmp dword [esi + 0x48], 0x6f75746c
jne 0x100898d1
lea ecx, [esi + 0x6c]
test ecx, ecx
je 0x10089aa9
movsx eax, word [ecx + 2]
movsx ecx, word [ecx]
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x100897c9
test ecx, ecx
jmp 0x1008980e
cmp dword [eax], 0
jne 0x1008961a
test bl, 0x20
jne 0x10089717
mov eax, dword [edi]
test dword [eax], 0x400
je 0x10089717
mov eax, dword [eax + 0x20]
xor ecx, ecx
test eax, eax
je 0x1008969e
push str.font_format
push edi
call eax
add esp, 8
mov ecx, eax
push str.Type_1
push ecx
call fcn.1010c4c0
add esp, 8
test eax, eax
je 0x100896ba
cmp dword [edi + 0x1c], 1
jne 0x100896ba
mov cl, 1
jmp 0x100896bc
xor cl, cl
mov eax, ebx
and eax, 0xf0000
cmp eax, 0x10000
jne 0x100896d8
mov eax, dword [edi]
test dword [eax], 0x800
jne 0x100896d8
test cl, cl
je 0x10089717
test byte [ebp + 8], 8
je 0x1008961a
cmp dword [ebp + 0x2f8], 0
je 0x1008961a
cmp word [ebp + 0x11e], 0
jne 0x1008961a
cmp dword [ebp + 0x2ac], 0
jne 0x1008961a
cmp dword [ebp + 0x2b4], 0
jne 0x1008961a
test dword [ebp + 8], 0x10000
je 0x10089750
mov ecx, dword [edi + 0xc]
mov eax, ebx
or eax, 0x800000
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0x48]
push dword [ebp + 0x58]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10089750
cmp dword [esi + 0x48], 0x53564720
je 0x100898d1
test byte [ebp + 8], 2
je 0x1008978b
test bl, 8
jne 0x1008978b
mov ecx, dword [edi + 0xc]
mov eax, ebx
or eax, 0x4000
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0x48]
push dword [ebp + 0x58]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008978b
cmp dword [esi + 0x48], 0x62697473
je 0x100898d1
mov ebx, dword [ebp + 0x80]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x14]
mov edi, dword [ebx + 0x18]
push dword [esp + 0x40]
mov dword [ebx + 0x18], 0
mov eax, dword [ecx]
push dword [ebp + 0x58]
push esi
mov eax, dword [eax + 0x14]
push ecx
mov eax, dword [eax + 0xc]
call eax
mov dword [ebx + 0x18], edi
add esp, 0x14
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x100898d1
jle 0x10089aa9
test ecx, ecx
jle 0x10089aa9
mov eax, dword [esi + 0x78]
or edi, 0xffffffff
xor edx, edx
nop
movsx ecx, word [eax]
cmp ecx, edi
jle 0x10089aa9
movsx edi, word [esi + 0x6e]
mov ebp, dword [esp + 0x38]
cmp ecx, edi
jge 0x10089aa9
inc edx
add eax, 2
mov edi, ecx
cmp edx, dword [esp + 0x1c]
jl 0x100897e0
movsx eax, word [esi + 0x6e]
dec eax
cmp ecx, eax
jne 0x10089aa9
xor eax, eax
mov dword [esp + 0x10], eax
test bl, 2
jne 0x100898d1
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
and eax, 0xffffffc0
mov dword [esi + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], ecx
and ecx, 0xffffffc0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x30], ecx
lea ecx, [edx + 0x3f]
mov dword [esp + 0x38], eax
and ecx, 0xffffffc0
and eax, 0xffffffc0
mov dword [esi + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x30], eax
mov eax, ebx
shr eax, 4
test al, 1
je 0x10089899
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add eax, 0x3f
add ecx, eax
mov eax, dword [esi + 0x18]
add eax, 0x3f
and ecx, 0xffffffc0
add eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
and eax, 0xffffffc0
sub eax, dword [esp + 0x28]
jmp 0x100898b3
mov eax, dword [esi + 0x18]
sub edx, dword [esp + 0x18]
add eax, 0x3f
add eax, dword [esp + 0x2c]
and edx, 0xffffffc0
and eax, 0xffffffc0
sub ecx, edx
sub eax, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x28]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x34]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x34], eax
test bl, 0x10
je 0x100898dd
mov eax, dword [esi + 0x34]
xor ecx, ecx
jmp 0x100898e2
mov ecx, dword [esi + 0x28]
xor eax, eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
test ebx, 0x2000
jne 0x1008991c
test byte [ebp + 8], 1
je 0x1008991c
mov edi, dword [ebp + 0x58]
push 0x40
push dword [edi + 0x10]
push dword [esi + 0x38]
call fcn.1008a1a0
push 0x40
mov dword [esi + 0x38], eax
push dword [edi + 0x14]
push dword [esi + 0x3c]
call fcn.1008a1a0
add esp, 0x18
mov dword [esi + 0x3c], eax
test ebx, 0x800
jne 0x10089a3d
mov ebp, dword [ebp + 0x80]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0x18], 0
je 0x10089a3d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x9c]
test edx, edx
je 0x10089957
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x48]
je 0x1008997d
mov eax, dword [ecx + 0x94]
xor edx, edx
mov edi, dword [esi + 0x48]
test eax, eax
je 0x10089979
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x10], edi
je 0x10089977
mov eax, dword [eax + 4]
test eax, eax
jne 0x10089966
jmp 0x10089979
mov edx, ecx
test edx, edx
je 0x10089998
mov ecx, dword [edx + 0xc]
lea eax, [ebp + 0x10]
push eax
push ebp
push esi
mov eax, dword [ecx + 0x2c]
push edx
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x10089a30
cmp dword [esi + 0x48], 0x6f75746c
jne 0x10089a30
test byte [ebp + 0x18], 1
je 0x100899db
lea eax, [esi + 0x6c]
test eax, eax
je 0x100899db
mov edi, dword [eax + 4]
test edi, edi
je 0x100899db
movsx eax, word [eax + 2]
lea eax, [edi + eax*8]
cmp edi, eax
jae 0x100899db
mov ebx, eax
push ebp
push edi
call fcn.1008d060
add edi, 8
add esp, 8
cmp edi, ebx
jb 0x100899c6
mov ebx, dword [esp + 0x14]
test byte [ebp + 0x18], 2
je 0x10089a30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x6c]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x10089a30
mov edx, dword [eax + 4]
xor ebx, ebx
xor edi, edi
cmp bx, word [eax + 2]
mov ebx, dword [esp + 0x14]
jge 0x10089a30
mov ebp, dword [esp + 0x38]
nop dword [eax + eax]
add dword [edx], ecx
lea edx, [edx + 8]
add dword [edx - 4], ebp
inc edi
movsx ecx, word [esi + 0x6e]
movzx eax, di
cmp eax, ecx
mov ecx, dword [esp + 0x30]
jl 0x10089a10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
lea eax, [esi + 0x40]
push ebp
push eax
call fcn.1008d060
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x9c]
mov dword [eax + 0x28], ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10089ac6
test bl, 1
jne 0x10089ac6
mov ecx, dword [esi + 0x48]
cmp ecx, 0x62697473
je 0x10089ac6
cmp ecx, 0x636f6d70
je 0x10089ac6
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xf
jne 0x10089a85
test ebx, 0x1000
mov eax, 2
cmovne ecx, eax
test bl, 4
je 0x10089ab6
mov eax, dword [esi + 4]
test eax, eax
je 0x10089aa9
mov eax, dword [eax + 0x60]
push ecx
push esi
push dword [eax + 4]
call fcn.1008b910
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x24
ret
pop edi
pop ebx
pop esi
mov eax, 6
pop ebp
add esp, 0x24
ret
push 0
push ecx
push esi
call fcn.1008df20
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x24
ret
pop esi
mov eax, 0x23
pop ebp
add esp, 0x24
ret