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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], edx
mov ebx, dword [ecx]
mov dword [eax], 0
mov dword [ecx], 0
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x1c], ebx
je 0x1001364d
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [esi + 0xc], 0
push edi
lea edi, [esi + 0x20]
mov dword [edi], 2
mov dword [ebp - 0x2c], edi
je 0x1001372c
mov ecx, dword [esi + 0x78]
lea eax, [ebp - 0xc]
push edi
push dword [ebp + 0x1c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x18]
push ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
push eax
mov eax, dword [esi + 0x88]
xor edx, edx
call eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
cmp dword [edi], 1
mov edi, dword [ebp - 8]
mov dword [ebp + 0x1c], eax
sete dl
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], edx
mov dword [eax], ecx
add dword [esi + 0x14], edi
cmp dword [ebp + 0x1c], 0
mov eax, dword [esi + 0x14]
jne 0x100136ba
test ebx, ebx
jne 0x100136ba
test edx, edx
je 0x100136c1
mov dword [esi + 0x18], 1
mov ecx, dword [esi + 8]
cmp ecx, 1
jne 0x100136da
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [esi + 0x18], 0
je 0x10013720
mov ebx, 1
cmp ecx, ebx
jbe 0x1001371b
lea edi, [esi + 0x90]
nop
mov edx, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [edi + 0x14]
call eax
cmp dword [ebp + 0x10], 0
jne 0x1001370f
cmp dword [ebp + 0xc], 0
je 0x10013712
mov ecx, dword [ebp - 0x10]
cmp dword [esi + 0x14], ecx
jne 0x10013712
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x18
cmp ebx, dword [esi + 8]
jb 0x100136f0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [esi + 8], 1
je 0x1001376c
cmp dword [esi + 4], 0
jne 0x1001375d
mov eax, dword [esi]
mov edx, 0x60000
mov ecx, eax
mov eax, dword [eax]
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x1001375a
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], edx
jmp 0x10013783
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
jmp 0x10013783
lea edi, [esi + 0x20]
xor ebx, ebx
mov dword [edi], 2
xor edi, edi
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x18], 1
mov dword [ebp + 0x1c], ebx
cmp dword [esi + 8], ebx
jbe 0x100138f1
lea eax, [edi + 5]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
mov dword [ebp - 0x24], eax
test edi, edi
jne 0x100137c3
mov eax, dword [ebp - 0x1c]
mov ebx, edx
sub eax, dword [ecx]
mov ecx, dword [ebp + 0x18]
jmp 0x100137dc
mov eax, dword [esi + edi*4 + 0x38]
lea ebx, [edi - 1]
mov ecx, dword [esi + edi*4 + 0x20]
shl ebx, 0x11
add ebx, dword [esi + 4]
add ebx, dword [esi + edi*4 + 0x2c]
sub eax, dword [esi + edi*4 + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
jne 0x100137fa
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, dword [esi]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], eax
jmp 0x10013817
mov eax, dword [esi + edi*4 + 0x30]
cmp eax, dword [esi + edi*4 + 0x3c]
jne 0x100138cd
mov edx, edi
mov dword [ebp - 4], 0x20000
shl edx, 0x11
add edx, dword [esi + 4]
mov eax, dword [esi + edi*4 + 0x68]
test eax, eax
je 0x10013834
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
jne 0x100138d0
mov ebx, eax
mov dword [ebp + 0x1c], ebx
jmp 0x100138d0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push ecx
push eax
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
call eax
mov ebx, dword [ebp + 0x1c]
test eax, eax
je 0x10013862
test ebx, ebx
mov dword [esi + edi*4 + 0x68], eax
cmove ebx, eax
mov dword [ebp + 0x1c], ebx
mov ecx, dword [ebp - 0x28]
xor edx, edx
cmp ecx, 1
sete dl
test edx, edx
jne 0x10013881
cmp dword [esi + 8], 1
mov dword [ebp - 0x18], edx
jne 0x10013881
test eax, eax
jne 0x10013881
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0xc]
test edi, edi
jne 0x10013892
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
add dword [ebp - 8], ecx
jmp 0x10013896
add dword [esi + edi*4 + 0x2c], ecx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [ebp - 4]
jne 0x100138ab
mov edx, dword [ebp + 8]
add dword [edx], eax
add dword [ebp - 0xc], eax
jmp 0x100138bb
mov dword [esi + edi*4 + 0x3c], eax
mov dword [esi + edi*4 + 0x30], 0
mov dword [esi + edi*4 + 0x24], edx
test eax, eax
jne 0x100138c3
test ecx, ecx
je 0x100138d0
mov eax, 1
mov dword [ebp + 0x10], eax
jmp 0x100138d3
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
inc edi
mov edx, dword [ebp - 8]
cmp edi, dword [esi + 8]
jb 0x100137a7
test eax, eax
jne 0x10013780
cmp dword [ebp - 0x18], 0
je 0x100138fa
mov eax, dword [ebp - 0x2c]
mov dword [eax], 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18