Function at 0x1008ea20
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 0x1008ed24
test ebx, ebx
je 0x1008ed24
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 0x1008ea77
cmp dword [edi + 0x78], esi
jne 0x1008ea70
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x1008ea70
mov byte [edi + 0x17], 1
call fcn.1003f600
mov esi, eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x1008eba4
test dword [ebx + 4], 0x800
je 0x1008ea90
mov ebx, dword [ebx + 8]
jmp 0x1008eadb
movzx eax, byte [ebx]
sub eax, 0xad
je 0x1008eaad
sub eax, 1
jne 0x1008eacd
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
call fcn.10058f20
jmp 0x1008eacf
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.10058f20
test eax, eax
je 0x1008eacd
mov ebx, dword [esp + 0x18]
neg ebx
jmp 0x1008eadb
xor eax, eax
test eax, eax
je 0x1008eba4
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1008eafb
push 0
push dword [esp + 0x14]
mov edx, 0x47
mov ecx, esi
push ebx
call fcn.1003f7e0
add esp, 0xc
jmp 0x1008eb2a
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 0x1008eb70
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1008eb4d
push ebx
push dword [ebp + 8]
lea edx, [ebx + 9]
mov ecx, esi
push ebx
call fcn.1003f7e0
add esp, 0xc
jmp 0x1008ec59
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 0x1008ec45
js 0x1008ec59
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 0x1008ec5d
or dword [eax + 4], 0x4000
mov word [eax + 2], cx
jmp 0x1008ec5d
push dword [esp + 0x10]
mov edx, ebx
mov ecx, edi
call fcn.1005eae0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x1008ebd9
push 0
push 0
push dword [esp + 0x18]
mov edx, 0xd
mov ecx, esi
call fcn.1003f7e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x1008ec0c
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 0x1008ec2b
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
mov edx, 0x11
call fcn.1003f7e0
add esp, 0xc
jmp 0x1008ec59
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 0x1008ed24
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.1005eae0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x1008eca3
push 0
push 0
push ebx
mov edx, 0xd
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1008ecd2
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 0x1008ecf9
push ebx
push edi
push dword [esp + 0x18]
mov edx, 0xa0
mov ecx, esi
call fcn.1003f7e0
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