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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [edx + 8], 0
push ebx
mov ebx, dword [edx + 0x3c]
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
mov dword [esp + 0x1c], ebx
jne 0x1008ed94
test ebx, ebx
je 0x1008ed94
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [edx + 8], eax
mov esi, dword [edi + 8]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x1008eae7
cmp dword [edi + 0x78], esi
jne 0x1008eae0
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x1008eae0
mov byte [edi + 0x17], 1
call fcn.1003f640
mov esi, eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x1008ec14
test dword [ebx + 4], 0x800
je 0x1008eb00
mov ebx, dword [ebx + 8]
jmp 0x1008eb4b
movzx eax, byte [ebx]
sub eax, 0xad
je 0x1008eb1d
sub eax, 1
jne 0x1008eb3d
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
call fcn.10058f60
jmp 0x1008eb3f
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.10058f60
test eax, eax
je 0x1008eb3d
mov ebx, dword [esp + 0x18]
neg ebx
jmp 0x1008eb4b
xor eax, eax
test eax, eax
je 0x1008ec14
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1008eb6b
push 0
push dword [esp + 0x14]
mov edx, 0x47
mov ecx, esi
push ebx
call fcn.1003f820
add esp, 0xc
jmp 0x1008eb9a
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
jne 0x1008ebe0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1008ebbd
push ebx
push dword [ebp + 8]
lea edx, [ebx + 9]
mov ecx, esi
push ebx
call fcn.1003f820
add esp, 0xc
jmp 0x1008ecc9
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
lea ecx, [eax + ecx*4]
jmp 0x1008ecb5
js 0x1008ecc9
mov eax, ebx
cdq
push edx
push eax
call fcn.10022070
mov cx, ax
add esp, 8
mov eax, dword [esp + 0x14]
cmp word [eax + 2], cx
jle 0x1008eccd
or dword [eax + 4], 0x4000
mov word [eax + 2], cx
jmp 0x1008eccd
push dword [esp + 0x10]
mov edx, ebx
mov ecx, edi
call fcn.1005eb20
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x1008ec49
push 0
push 0
push dword [esp + 0x18]
mov edx, 0xd
mov ecx, esi
call fcn.1003f820
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x1008ec7c
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1008ec9b
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
mov edx, 0x11
call fcn.1003f820
add esp, 0xc
jmp 0x1008ecc9
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x10], 0
je 0x1008ed94
inc dword [edi + 0x2c]
mov ecx, edi
mov ebx, dword [edi + 0x2c]
mov dword [eax + 0xc], ebx
inc dword [edi + 0x2c]
mov edx, dword [edx + 0x10]
push ebx
call fcn.1005eb20
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x1008ed13
push 0
push 0
push ebx
mov edx, 0xd
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1008ed42
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x1008ed69
push ebx
push edi
push dword [esp + 0x18]
mov edx, 0xa0
mov ecx, esi
call fcn.1003f820
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret