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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [esp + 0x18], edx
push esi
push edi
mov dword [esp + 0x2c], 0
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
mov dword [esp + 0x24], edi
mov al, byte [ecx + 0x10]
mov byte [esp + 0x12], al
mov eax, dword [edi + 0x38]
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [edi + 0x38], eax
mov dword [esp + 0x30], 0
cmp edx, 2
jne 0x1009e718
cmp byte [ecx + 0x11], 0x5a
jne 0x1009e718
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1009e7be
cmp byte [ecx + 0x10], 0x59
jne 0x1009e7a0
mov edi, dword [esi + 0x74]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x24]
cmp edx, 2
jne 0x1009e777
mov al, byte [ecx + 0x11]
mov byte [esp + 0x13], al
cmp al, 0x56
jne 0x1009e749
mov ecx, dword [ebx + 0x28]
jmp 0x1009e74c
mov ecx, dword [ebx + 0x20]
xor edx, edx
cmp al, 0x56
setne dl
xor eax, eax
cmp byte [esp + 0x13], 0x56
setne al
lea edx, [edx*2 + 0x37]
lea eax, [eax*8 + 0x20]
mov eax, dword [eax + ebx]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
jmp 0x1009e78a
mov edi, dword [ebx + 0x28]
mov edx, 0x36
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
push ecx
mov ecx, ebx
call fcn.1009e130
add esp, 0x10
jmp 0x1009e7b6
push 1
push dword [esp + 0x20]
mov edx, 0x31
mov ecx, esi
push eax
call fcn.10029290
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp edx, 1
jne 0x1009e7d2
cmp dword [ecx + 0x58], 0
jne 0x1009e7d2
xor edx, edx
mov ecx, ebx
call fcn.1009cae0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x74]
mov dword [esp + 0x34], eax
mov al, byte [ecx + 0x11]
cmp al, byte [ecx + 0x12]
jne 0x1009e8fa
cmp dword [ebp + 8], 0
je 0x1009e8fa
cmp byte [ecx + 0x10], 0x59
jne 0x1009e8fa
mov cl, byte [edi + 0x13]
test cl, cl
jne 0x1009e816
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], edx
jmp 0x1009e843
sub cl, 1
movzx eax, cl
mov byte [edi + 0x13], cl
mov edx, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x14], edx
jne 0x1009e834
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x1009e843
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
cmp dword [esp + 0x20], 2
mov dword [esp + 0x28], eax
jne 0x1009e88e
push edx
push dword [ebx + 0x20]
mov edx, 0x85
mov ecx, esi
call fcn.100293c0
push dword [esp + 0x30]
mov edx, 0x85
mov ecx, esi
push dword [ebx + 0x30]
call fcn.100293c0
push dword [esp + 0x24]
mov edx, 0x39
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x40]
call fcn.10029290
add esp, 0x1c
jmp 0x1009e8be
cmp dword [ebx + 0x1c], 0
je 0x1009e8be
push edx
push dword [ebx + 0x30]
mov edx, 0x85
mov ecx, esi
call fcn.100293c0
push dword [esp + 0x1c]
mov edx, 0x39
mov ecx, esi
push dword [esp + 0x28]
push dword [ebx + 0x1c]
call fcn.10029290
add esp, 0x14
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1009e8da
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x1009e8da
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1009e8f6
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x1009e8f6
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x1009e987
sub eax, 1
je 0x1009e94a
cmp dword [ecx + 0x58], 0
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
je 0x1009e936
push 1
push dword [ecx + 0x5c]
mov edx, 0x54
mov ecx, esi
call fcn.100293c0
add esp, 8
jmp 0x1009e99c
push dword [ebx + 0x14]
mov edx, ecx
mov ecx, ebx
push 0
push eax
call fcn.1009c250
add esp, 0xc
jmp 0x1009e99c
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x58]
mov dword [esp + 0x14], eax
test edx, edx
je 0x1009e973
push 1
push edx
mov edx, 0x54
mov ecx, esi
call fcn.100293c0
add esp, 8
jmp 0x1009e99c
push dword [ebx + 0x14]
mov edx, ecx
mov ecx, ebx
push 1
push eax
call fcn.1009c250
add esp, 0xc
jmp 0x1009e99c
mov eax, dword [ebx + 0x28]
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x28], eax
call fcn.1009d500
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x18]
jne 0x1009ea1a
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1009e9ca
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x80
mov ecx, esi
call fcn.10029250
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x1009e9fd
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x80
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 eax, dword [esi + 0x74]
test eax, eax
jle 0x1009ea1e
lea ecx, [eax + eax*4]
mov edi, 2
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x24]
jmp 0x1009ea1e
mov edx, dword [esp + 0x14]
cmp dword [ebp + 0xc], 0
mov ecx, dword [esi + 0x74]
je 0x1009eaec
lea eax, [ecx + 2]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x78], ecx
jg 0x1009ea4f
push 0
push eax
push dword [esp + 0x1c]
mov edx, 5
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1009ea82
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x78], edx
jg 0x1009eaa9
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x1009eadc
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x12], 0x4c
je 0x1009ebf6
jmp 0x1009eb6d
xor eax, eax
cmp byte [esp + 0x12], 0x4c
setne al
inc eax
add eax, ecx
mov dword [esp + 0x20], eax
cmp dword [esi + 0x78], ecx
jg 0x1009eb1a
push 0
push eax
push dword [esp + 0x1c]
mov edx, 5
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1009eb4d
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x12], 0x4c
je 0x1009ebf6
push dword [esp + 0x1c]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.100293c0
add esp, 8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009eb8d
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1009eb95
mov edx, eax
mov ecx, edi
call fcn.1004a4e0
jmp 0x1009eb97
mov dword [esp + 0x20], 0
xor eax, eax
mov edx, dword [esp + 0x14]
mov ecx, ebx
push eax
mov dword [esp + 0x28], eax
call fcn.1009c170
mov eax, dword [esp + 0x1c]
add esp, 4
mov ebx, dword [esp + 0x24]
mov ecx, edi
push dword [esp + 0x34]
mov edx, dword [eax + 0xc]
push dword [esp + 0x2c]
push ebx
call fcn.1009df50
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 1
jne 0x1009ebeb
test ebx, ebx
je 0x1009ebf6
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x1009ebf6
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
jmp 0x1009ebf6
cmp eax, dword [edi + 0x1c]
jle 0x1009ebf6
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ebx
mov edx, dword [esp + 0x30]
test edx, edx
je 0x1009ec4b
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1009ec1c
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x1009ec4b
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x1c]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1009ec72
push ebx
mov edx, esi
call fcn.10029c70
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 0x40]
mov ecx, dword [esi + 0x74]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [edx + ebx*4], ecx
pop ebx
mov esp, ebp
pop ebp
ret