Function at 0x100156d0
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
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 8]
push edi
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp + 8]
push eax
mov edi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.100184d0
mov esi, eax
test esi, esi
jne 0x10015713
cmp dword [edi + 0x64], eax
jne 0x10015751
cmp dword [edi + 0x68], eax
jne 0x10015751
lea esi, [eax - 0x22]
xor eax, eax
push dword [ebp - 8]
mov ecx, edi
push eax
call fcn.1001bfd0
test esi, esi
je 0x10015900
mov edx, dword [0x10173674]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x100158ce
lea ecx, [ecx]
cmp dword [eax + 0x10], esi
jge 0x100158af
mov eax, dword [eax + 8]
jmp 0x100158b3
push 0
push 0
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.1001d7f0
test eax, eax
je 0x10015770
mov esi, 0xffffffc7
jmp 0x10015713
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
mov ecx, edi
call fcn.1001d930
mov esi, eax
test esi, esi
jne 0x10015713
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test ebx, ebx
je 0x100157aa
lea ecx, [ecx]
mov eax, dword [esi + ecx*4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xd8], 2
jne 0x100157e8
cmp dword [eax + 0x14], 0
jg 0x100157de
inc ecx
cmp ecx, ebx
jb 0x10015790
xor edx, edx
test ebx, ebx
je 0x100157cb
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 0x100157b0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
jne 0x100157f2
mov esi, 0xffffffdc
jmp 0x10015713
mov esi, 0xfffffc0c
jmp 0x10015713
mov esi, 0xffffffda
jmp 0x10015713
lea eax, [ebp - 4]
push eax
push 1
mov ecx, edi
call fcn.10019ce0
mov esi, eax
test esi, esi
jne 0x100158a7
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x3c]
push dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x20]
mov dword [ecx], eax
push esi
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.1001d650
test eax, eax
jne 0x10015836
lea esi, [eax - 6]
mov eax, dword [ebp + 8]
jmp 0x10015715
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp + 0x1c]
push esi
call fcn.10019b20
test eax, eax
jne 0x10015859
lea esi, [eax - 6]
mov eax, dword [ebp + 8]
jmp 0x10015715
push ebx
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, edi
call fcn.1001d6c0
test eax, eax
jne 0x1001587b
lea esi, [eax - 4]
mov eax, dword [ebp + 8]
jmp 0x10015715
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 0x10015715
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1001589c
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 0x10015715
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10015740
cmp ecx, edx
je 0x100158ce
cmp esi, dword [ecx + 0x10]
jl 0x100158ce
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0xc]
jmp 0x100158d4
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp edx, eax
jne 0x100158de
xor ecx, ecx
jmp 0x100158e1
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 0x10015900
test eax, eax
je 0x10015900
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