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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x94]
xor edx, edx
div dword [esi + 0x98]
or byte [esi + 0x14], 4
mov edx, dword [edi + 0x14]
lea ecx, [edx - 1]
mov dword [esp + 0x24], esi
lea ebx, [eax - 1]
not ebx
and ebx, ecx
mov ecx, dword [esi + 0x18]
inc ebx
mov dword [esp + 0x14], ebx
cmp edx, ecx
jbe 0x1003f966
mov edi, edx
sub edi, ebx
inc edi
mov dword [esp + 0xc], edi
jmp 0x1003f97f
lea edx, [ebx + eax - 1]
cmp edx, ecx
jbe 0x1003f979
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
mov edi, ecx
jmp 0x1003f97f
mov dword [esp + 0xc], eax
mov edi, eax
mov dword [esp + 0x20], 0
test edi, edi
jle 0x1003fb92
mov edi, ebx
cmp dword [esp + 0x10], 0
jne 0x1003fb92
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
je 0x1003f9ed
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1003f9ed
mov eax, edi
call fcn.10015940
test eax, eax
je 0x1003f9ed
mov eax, edi
mov ecx, esi
call fcn.10021c80
mov dword [esp + 0x18], eax
test eax, eax
je 0x1003fa72
movzx ecx, word [eax + 0x18]
test cl, 4
je 0x1003f9dc
mov dword [esp + 0x1c], 1
mov ebx, dword [eax + 0x10]
test cl, 0x40
je 0x1003fa4e
mov ecx, eax
call fcn.1001cc40
jmp 0x1003fa53
mov eax, dword [0x100cb4d0]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x1003fa72
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call fcn.1006b8c0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003fa72
mov eax, dword [esp + 0x18]
push eax
call fcn.1003a3a0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 0x18]
add esp, 4
test dl, 4
je 0x1003fa3d
mov dword [esp + 0x1c], 1
mov ebx, dword [eax + 0x10]
test dl, 0x40
je 0x1003fa4e
mov ecx, eax
call fcn.1001cc40
jmp 0x1003fa53
call fcn.1001d7d0
cmp dword [ebx + 0x78], 0
jne 0x1003fa6e
mov ecx, dword [ebx + 0xdc]
cmp dword [ecx + 0xc], 0
jne 0x1003fa6e
push ebx
call fcn.10069eb0
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc eax
inc edi
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
jl 0x1003f991
cmp dword [esp + 0x10], 0
jne 0x1003fb92
cmp dword [esp + 0x1c], 0
je 0x1003fb92
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
jmp 0x1003fab0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + 0x28]
push 0
push ebx
push eax
call dword [0x100cb444]
mov edx, dword [esi + 0xdc]
add esp, 0xc
test eax, eax
je 0x1003fb82
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x1003faef
push ebx
mov edi, eax
mov ebx, edx
call fcn.10015620
mov ebx, dword [esp + 0x20]
add esp, 4
jmp 0x1003fb08
xor eax, eax
cmp ax, word [ecx + 0x1a]
jne 0x1003fafa
inc dword [edx + 0xc]
inc word [ecx + 0x1a]
cmp ebx, 1
jne 0x1003fb06
mov dword [edx + 0x2c], ecx
mov eax, ecx
test eax, eax
je 0x1003fb82
or word [eax + 0x18], 4
movzx ecx, word [eax + 0x18]
mov edi, dword [eax + 0x10]
test cl, 0x40
je 0x1003fb62
dec dword [edi + 0x78]
mov ecx, dword [edi + 0x88]
mov dword [eax + 0xc], ecx
mov ebx, dword [edi + 0x3c]
mov dword [edi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x98]
mov esi, dword [ebx]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100083f0
push edx
mov edx, dword [esi + 0x48]
push eax
push ebx
call edx
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1003fb67
call fcn.1001d7d0
cmp dword [edi + 0x78], 0
jne 0x1003fb82
mov eax, dword [edi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1003fb82
push edi
call fcn.10069eb0
add esp, 4
inc ebx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
jne 0x1003fab0
and byte [esi + 0x14], 0xfb
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret