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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10015158
call fcn.100154a0
lea ecx, [esi + 0x810]
call fcn.10011470
mov edi, eax
mov dword [ebp - 0x14], eax
mov edx, dword [esi + 0x74]
test edx, edx
je 0x10015167
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x1c]
je 0x1001519e
mov eax, dword [esi + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x78], 0
mov eax, dword [eax]
call eax
mov dword [esi + 0x74], eax
test eax, eax
jne 0x10015198
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x78], eax
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x100151b0
mov eax, dword [esi + 0x80]
cmp eax, dword [esi + 0x18]
je 0x100151e0
mov eax, dword [esi + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi + 0x18]
mov dword [esi + 0x80], 0
mov eax, dword [eax]
call eax
mov dword [esi + 0x7c], eax
test eax, eax
je 0x1001518b
mov eax, dword [esi + 0x18]
mov dword [esi + 0x80], eax
push ebx
push 0
xor edx, edx
mov dword [esi + 0x388], 0
lea ecx, [esi + 0x88]
call fcn.10016120
mov eax, dword [esi + 0x58]
xor ebx, ebx
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
cmp ebx, ecx
jne 0x10015295
test edi, edi
je 0x10015251
lea ecx, [esi + 0x810]
lea edx, [ebp - 8]
call fcn.100115c0
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x10015249
mov ecx, dword [ebp - 8]
jmp 0x10015222
xor ecx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
cmp dword [esi + 0x68], 0
jne 0x10015295
mov eax, dword [esi + 0x80]
lea edx, [ebp - 8]
mov ecx, dword [esi + 0x7c]
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x34]
push edx
mov dword [ebp - 0x10], ecx
mov edx, ecx
mov ecx, eax
mov dword [ebp - 4], ebx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 8]
add dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
adc dword [esi + 0x64], ebx
test ecx, ecx
je 0x1001528e
test eax, eax
je 0x10015295
mov dword [esi + 0x68], 1
mov edi, dword [esi + 0x1c]
xor edx, edx
sub edi, dword [ebp - 0xc]
cmp dword [esi + 0x44], edx
je 0x100152c8
mov ebx, dword [esi + 0x48]
sub ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x54]
cmp edx, eax
jb 0x100152c5
ja 0x100152b8
cmp edi, ebx
jb 0x100152c5
cmp dword [esi + 0x40], edx
mov eax, 1
mov edi, ebx
cmovne edx, eax
mov ebx, dword [ebp - 4]
mov eax, ecx
mov dword [ebp - 0x20], edi
sub eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp ebx, ecx
push edx
mov edx, dword [esi + 0x74]
lea ecx, [esi + 0x88]
sete al
add edx, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
add eax, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10015680
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
add eax, edx
mov dword [esi + 0x7c0], ecx
mov ecx, dword [ebp - 0x18]
add dword [ebp - 4], ecx
add dword [esi + 0x58], ecx
mov dword [esi + 0x7c4], ebx
adc dword [esi + 0x5c], 0
add dword [esi + 0x50], edx
mov dword [ebp - 0xc], eax
adc dword [esi + 0x54], 0
test ecx, ecx
jne 0x10015336
test edx, edx
je 0x10015343
test ebx, ebx
jne 0x10015343
mov dword [ebp - 0x20], ebx
cmp edx, edi
jb 0x1001536d
jmp 0x1001534a
mov dword [ebp - 0x20], 1
test eax, eax
je 0x1001536d
mov eax, dword [esi + 0x38]
mov ecx, eax
mov edi, dword [ebp - 0xc]
mov edx, dword [esi + 0x74]
push edi
mov eax, dword [eax]
call eax
cmp eax, edi
jne 0x100153ef
mov dword [ebp - 0xc], 0
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x100153db
test ebx, ebx
jne 0x100153db
mov ebx, dword [esi + 0x58]
mov ecx, ebx
sub ecx, dword [ebp - 0x24]
mov edi, dword [esi + 0x5c]
mov eax, edi
sbb eax, dword [ebp - 0x28]
test eax, eax
ja 0x100153af
jb 0x10015396
cmp ecx, 0x400000
jae 0x100153af
mov ecx, dword [esi + 0x50]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x54]
sbb eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
jne 0x100153af
cmp ecx, 0x400000
jb 0x100153db
push dword [esi + 0x54]
mov eax, dword [edx]
mov ecx, edx
push dword [esi + 0x50]
push edi
push ebx
call eax
mov ecx, eax
test ecx, ecx
jne 0x10015407
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], 0
jne 0x1001541f
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
jmp 0x10015222
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov dword [eax + 0x38], 9
mov eax, 9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov dword [eax + 0x38], 0xa
mov dword [eax + 0x30], ecx
mov eax, ecx
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4