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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov edi, ecx
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push 1
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.10018630
mov esi, eax
test esi, esi
jne 0x10015c52
push eax
push eax
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.1001d810
test eax, eax
je 0x10015adc
lea esi, [ebx - 0x39]
jmp 0x10015c52
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.1001d950
mov esi, eax
test esi, esi
jne 0x10015c52
cmp dword [edi + 0x64], ebx
jne 0x10015b06
cmp dword [edi + 0x68], ebx
jne 0x10015b06
lea esi, [eax - 0x22]
jmp 0x10015c52
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
test esi, esi
je 0x10015b66
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xd8], 2
jne 0x10015b83
cmp dword [eax + 0x14], ebx
jle 0x10015b79
inc ecx
cmp ecx, esi
jb 0x10015b12
test esi, esi
je 0x10015b66
xor ebx, ebx
xor edi, edi
mov eax, dword [edx + ebx*4]
or ecx, 0xffffffff
mov edx, dword [eax + 8]
lea eax, [edx + 0x14]
lock xadd dword [eax], ecx
dec ecx
cmp dword [edx + 0xdc], 0
mov eax, 1
mov edx, dword [ebp + 0x10]
cmove edi, eax
mov dword [ebp - 0xc], ecx
inc ebx
cmp ebx, esi
jb 0x10015b33
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0
jne 0x10015b8d
mov esi, 0xffffffdc
jmp 0x10015c52
mov esi, 0xfffffc0b
jmp 0x10015c52
mov esi, 0xffffffda
jmp 0x10015c52
lea eax, [ebp - 4]
mov ecx, edi
push eax
push 1
call fcn.10019e60
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
jne 0x10015c52
mov eax, dword [ebx + 0x3c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
mov ecx, edi
call fcn.1001d670
test eax, eax
je 0x10015c4d
push esi
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x1c]
mov ecx, edi
push ebx
call fcn.10019ca0
test eax, eax
je 0x10015c4d
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0x10]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.1001d6e0
test eax, eax
jne 0x10015bfe
lea esi, [eax - 4]
jmp 0x10015c52
cmp dword [ebp - 0xc], 1
jne 0x10015c10
push esi
mov ecx, edi
call fcn.1000bc10
test eax, eax
jne 0x10015c4d
mov ecx, dword [ebp - 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x10015c52
cmp dword [edi + 0x60], ebx
jne 0x10015c36
push dword [ebp - 0x14]
mov ecx, edi
call fcn.1000bc10
mov esi, eax
test esi, esi
jne 0x10015c52
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10015c42
mov eax, dword [ebp - 8]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov esi, 0xfffffffa
push dword [ebp - 8]
mov ecx, edi
push ebx
call fcn.1001c000
test esi, esi
je 0x10015cc9
mov edx, dword [0x101afea8]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10015c97
cmp dword [eax + 0x10], esi
jge 0x10015c7c
mov eax, dword [eax + 8]
jmp 0x10015c80
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10015c72
cmp ecx, edx
je 0x10015c97
cmp esi, dword [ecx + 0x10]
jl 0x10015c97
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
jmp 0x10015c9d
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x20]
mov eax, dword [eax]
cmp edx, eax
jne 0x10015ca7
xor ecx, ecx
jmp 0x10015caa
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov eax, str.Unknown_error
cmovne eax, ecx
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x10015cc9
test eax, eax
je 0x10015cc9
push dword [edi + 0x78]
push 0
push 0
push eax
call ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c