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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ecx + 0x14]
xor eax, eax
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], eax
push esi
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov esi, dword [ebx + 0x18]
mov edx, eax
push edi
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x28], ecx
lea ecx, [edx - 1]
not ecx
lea eax, [edi - 1]
and ecx, eax
inc ecx
mov dword [esp + 0x20], ecx
cmp edi, esi
jbe 0x1003e67e
sub edi, ecx
inc edi
mov dword [esp + 0x18], edi
jmp 0x1003e698
lea eax, [edx - 1]
add eax, ecx
cmp eax, esi
jbe 0x1003e692
mov edi, esi
sub edi, ecx
inc edi
mov dword [esp + 0x18], edi
jmp 0x1003e698
mov edi, edx
mov dword [esp + 0x18], edx
xor eax, eax
mov dword [esp + 0x24], 0
test edi, edi
jle 0x1003e8ea
mov esi, ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
test eax, eax
jne 0x1003e8ea
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 0x18]
je 0x1003e75d
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x1003e75d
mov edx, esi
call fcn.100381a0
test eax, eax
je 0x1003e75d
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x1013e024]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x1003e707
mov dword [esp + 0x30], eax
jmp 0x1003e804
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
mov dword [esp + 0x1c], edx
cmp dword [eax], 0
jne 0x1003e72a
push ecx
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.10038990
add esp, 4
jmp 0x1003e731
inc dword [edx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1003e804
test byte [eax + 0x1c], 8
mov edx, 1
mov ecx, dword [esp + 0x14]
cmovne ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, eax
call fcn.1003e0f0
jmp 0x1003e804
mov eax, dword [0x1013da9c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x1003e804
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0xcc]
push esi
push ebx
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003e808
mov ecx, dword [esp + 0x30]
call fcn.1003e540
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
movzx eax, word [edx + 0x1c]
test al, 8
cmovne ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
test al, 0x20
je 0x1003e7fd
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.100af620
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x1003e804
mov ecx, edx
call fcn.10038a10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
inc esi
inc edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edx
cmp edx, edi
jl 0x1003e6b8
test eax, eax
jne 0x1003e8ea
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003e8e6
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x1013e024]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1003e8d4
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x1003e870
push edx
mov edx, esi
call fcn.10038990
add esp, 4
jmp 0x1003e877
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x1003e8d4
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x1003e8cd
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.100af620
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x28]
add esp, 0x10
mov esi, dword [esp + 0x20]
jmp 0x1003e8d4
mov ecx, eax
call fcn.10038a10
inc esi
sub edi, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
jne 0x1003e836
mov eax, dword [esp + 0x10]
and byte [ebx + 0x14], 0xfb
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret