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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push 1
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10018630
mov esi, eax
test esi, esi
jne 0x10015883
cmp dword [edi + 0x64], eax
jne 0x100158c1
cmp dword [edi + 0x68], eax
jne 0x100158c1
lea esi, [eax - 0x22]
xor eax, eax
push dword [ebp - 8]
mov ecx, edi
push eax
call fcn.1001c000
test esi, esi
je 0x10015a70
mov edx, dword [0x101afea8]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10015a3e
lea ecx, [ecx]
cmp dword [eax + 0x10], esi
jge 0x10015a1f
mov eax, dword [eax + 8]
jmp 0x10015a23
push 0
push 0
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.1001d810
test eax, eax
je 0x100158e0
mov esi, 0xffffffc7
jmp 0x10015883
mov ebx, dword [ebp + 0xc]
mov ecx, edi
push ebx
push dword [ebp + 0x10]
call fcn.1001d950
mov esi, eax
test esi, esi
jne 0x10015883
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test ebx, ebx
je 0x1001591a
lea ecx, [ecx]
mov eax, dword [esi + ecx*4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xd8], 2
jne 0x10015958
cmp dword [eax + 0x14], 0
jg 0x1001594e
inc ecx
cmp ecx, ebx
jb 0x10015900
xor edx, edx
test ebx, ebx
je 0x1001593b
mov eax, dword [esi + edx*4]
mov ecx, 1
mov eax, dword [eax + 8]
add eax, 0x14
lock xadd dword [eax], ecx
inc ecx
inc edx
mov dword [ebp - 0x18], ecx
cmp edx, ebx
jb 0x10015920
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
jne 0x10015962
mov esi, 0xffffffdc
jmp 0x10015883
mov esi, 0xfffffc0c
jmp 0x10015883
mov esi, 0xffffffda
jmp 0x10015883
lea eax, [ebp - 4]
mov ecx, edi
push eax
push 1
call fcn.10019e60
mov esi, eax
test esi, esi
jne 0x10015a17
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
mov dword [ebp + 8], esi
push dword [ebp + 0x18]
mov eax, dword [esi + 0x3c]
push esi
mov ecx, dword [eax]
mov eax, dword [ebp + 0x20]
mov dword [ecx], eax
mov ecx, edi
call fcn.1001d670
test eax, eax
jne 0x100159a6
lea esi, [eax - 6]
mov eax, dword [ebp + 8]
jmp 0x10015885
push 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
push esi
call fcn.10019ca0
test eax, eax
jne 0x100159c9
lea esi, [eax - 6]
mov eax, dword [ebp + 8]
jmp 0x10015885
push ebx
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
mov ecx, edi
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.1001d6e0
test eax, eax
jne 0x100159eb
lea esi, [eax - 4]
mov eax, dword [ebp + 8]
jmp 0x10015885
mov ecx, dword [ebp - 0xc]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x10015885
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10015a0c
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 eax, dword [ebp - 4]
jmp 0x10015885
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100158b0
cmp ecx, edx
je 0x10015a3e
cmp esi, dword [ecx + 0x10]
jl 0x10015a3e
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0xc]
jmp 0x10015a44
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp edx, eax
jne 0x10015a4e
xor ecx, ecx
jmp 0x10015a51
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 0x10015a70
test eax, eax
je 0x10015a70
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