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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
xor edx, edx
cmp eax, ecx
mov dword [esp + 0x18], edx
jbe 0x100400a9
mov dword [esp + 0x24], edx
div ecx
or byte [ebx + 0x14], 4
mov edx, dword [edi + 0x14]
lea ecx, [edx - 1]
lea esi, [eax - 1]
not esi
and esi, ecx
mov ecx, dword [ebx + 0x18]
add esi, 1
cmp edx, ecx
mov dword [esp + 0x2c], esi
jbe 0x1003fe9e
mov edi, edx
sub edi, esi
add edi, 1
mov dword [esp + 0x14], edi
jmp 0x1003feb9
lea edx, [esi + eax - 1]
cmp edx, ecx
jbe 0x1003feb3
sub ecx, esi
add ecx, 1
mov dword [esp + 0x14], ecx
mov edi, ecx
jmp 0x1003feb9
mov dword [esp + 0x14], eax
mov edi, eax
test edi, edi
mov dword [esp + 0x10], 0
jle 0x1004009a
mov edi, esi
mov dword [esp + 0x20], esi
nop
cmp dword [esp + 0x18], 0
jne 0x1004009a
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
je 0x10040004
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x10040004
mov eax, edi
call fcn.10014b90
test eax, eax
je 0x10040004
lea ecx, [esp + 0x28]
push ecx
push 0
push edi
mov edi, dword [ebx + 0xdc]
mov dword [esp + 0x34], 0
call fcn.1001ca90
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1003ff3e
test byte [eax + 0x18], 4
je 0x1003ff39
mov dword [esp + 0x24], 1
call fcn.10020ee0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add eax, 1
add edi, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
jl 0x1003fed0
cmp dword [esp + 0x18], 0
jne 0x1004009a
cmp dword [esp + 0x24], 0
je 0x1004009a
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0xdc]
lea eax, [esp + 0x28]
push eax
add ecx, esi
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.1001ca90
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x10040085
or word [eax + 0x18], 4
movzx ecx, word [eax + 0x18]
test cl, 0x40
mov esi, dword [eax + 0x10]
je 0x10040061
add dword [esi + 0x78], 0xffffffff
mov edx, dword [esi + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edi, dword [ecx]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [edi + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x10040066
mov eax, dword [0x100c6560]
cdq
idiv dword [ebx + 0x98]
add eax, 1
cmp edi, eax
je 0x1003ff42
push 0
lea edx, [esp + 0x20]
push edx
push edi
push ebx
call fcn.100670a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1003ff42
mov eax, dword [esp + 0x1c]
call fcn.1003abd0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test byte [eax + 0x18], 4
je 0x10040057
mov dword [esp + 0x24], 1
call fcn.10020ee0
jmp 0x1003ff42
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x10040081
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x10040081
push esi
call fcn.10065200
add esp, 4
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x1003ff7c
and byte [ebx + 0x14], 0xfb
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.1003abd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret