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

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + 0x14]
cmp edi, dword [ebx + 0x108]
jne 0x1002ae7f
push 4
push dword [0x1004936c]
call fcn.10028ef0
test eax, eax
jne 0x1002ae62
pop edi
mov eax, 0xfffffc0d
pop ebx
add esp, 0x18
ret 4
mov dword [edi + 0x50], eax
xor ecx, ecx
mov eax, dword [eax]
mov word [eax], cx
mov eax, 0xa
mov word [edi + 0x54], ax
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret 4
push esi
mov esi, dword [edi + 0x18]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x28]
push eax
movzx eax, word [ebx + 0xea]
push eax
push esi
push dword [ebx + 0x10c]
call fcn.10018360
test eax, eax
js 0x1002b0e0
mov eax, dword [esp + 0x18]
push eax
push eax
call fcn.1000baa0
push eax
push ebx
call fcn.1000ac90
test eax, eax
js 0x1002b0e0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x28]
push dword [ebx + 0x10c]
call fcn.100299a0
test eax, eax
js 0x1002b0e0
push ebp
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 0
push eax
push dword [ebx + 0x34]
push dword [esp + 0x18]
call fcn.1000d810
movzx eax, word [eax]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x38]
push dword [esp + 0x18]
call fcn.1000d810
movzx eax, byte [eax]
mov byte [edi + 0x56], al
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x3c]
push dword [esp + 0x18]
call fcn.1000d810
push 4
movzx eax, byte [eax]
mov byte [edi + 0x57], al
mov dword [edi + 0x30], 0xf000f000
mov dword [edi + 0x34], 0xf000f000
push dword [0x1004936c]
mov dword [esp + 0x18], 0
call fcn.10028ef0
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x1002af73
mov esi, 0xfffffc0d
jmp 0x1002b0c0
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
movzx eax, word [ebx + 0xec]
push esi
push eax
push dword [ebx + 0x110]
call fcn.10018a20
mov esi, eax
test esi, esi
js 0x1002b0bc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.10010040
mov esi, eax
test esi, esi
js 0x1002b0bc
jmp 0x1002afc0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b0fe
lea ecx, [esp + 0x2c]
push ecx
push dword [ebx + 0x78]
push eax
call fcn.1000d810
mov esi, dword [eax]
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x64]
push dword [esp + 0x18]
call fcn.1000d810
movzx eax, byte [eax]
cmp eax, 0xb
je 0x1002affa
cmp eax, 0xc
jne 0x1002b023
inc ebp
lea eax, [ebp*4 + 4]
push eax
push dword [esp + 0x18]
push dword [0x1004936c]
call fcn.1003a220
test eax, eax
je 0x1002b0f7
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [eax + ebp*4], esi
push dword [ebx + 0x6c]
push dword [esp + 0x14]
call fcn.1000d7a0
test eax, eax
je 0x1002b036
mov dword [edi + 0x34], esi
push dword [ebx + 0x74]
push dword [esp + 0x14]
call fcn.1000d7a0
test eax, eax
je 0x1002b049
mov dword [edi + 0x30], esi
test dword [ebx + 0x120], 0x2000
jne 0x1002b08c
mov edx, esi
and esi, 0xfff
shr edx, 0x10
and edx, 0xff
cmp esi, 0x7d1
ja 0x1002b07e
movzx eax, byte [edi + 0x57]
mov ecx, 0xff
sub ecx, edx
cmp cx, ax
jmp 0x1002b085
movzx eax, byte [edi + 0x56]
cmp dx, ax
sbb eax, eax
inc eax
test eax, eax
jne 0x1002b0e9
push 0
push 0
push dword [esp + 0x20]
call fcn.10010590
mov esi, eax
test esi, esi
js 0x1002b0bc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.10010040
mov esi, eax
test esi, esi
jns 0x1002afc0
mov ebp, dword [esp + 0x14]
push dword [esp + 0x18]
call fcn.100113e0
test eax, eax
js 0x1002b0df
test ebp, ebp
je 0x1002b0dd
push ebp
push dword [0x1004936c]
call fcn.1003a290
mov eax, esi
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x18
ret 4
push edi
push ebx
call fcn.1002a4f0
mov esi, 0xfffffb47
jmp 0x1002b0bc
mov esi, 0xfffffc0d
jmp 0x1002b0bc
test esi, esi
js 0x1002b0bc
push dword [esp + 0x18]
call fcn.10011340
mov esi, eax
test esi, esi
js 0x1002b0bc
mov eax, dword [esp + 0x14]
mov dword [edi + 0x50], eax
mov eax, dword [eax]
mov word [eax], bp
xor eax, eax
test ebp, ebp
pop ebp
setne al
shl eax, 3
xor eax, dword [edi + 0x2c]
and eax, 8
xor dword [edi + 0x2c], eax
mov eax, dword [esp + 0x20]
pop esi
mov word [edi + 0x54], ax
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret 4