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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov eax, dword [eax]
push esi
push edi
lea edi, [ebp + 0x1c]
mov dword [esp + 0x2c], eax
push edi
lea esi, [ebp + 4]
push 0x188
push esi
mov dword [esp + 0x30], esi
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
mov eax, dword [esi]
mov ecx, dword [edi]
test byte [eax + 0x9c], 0x40
jne 0x1013d8f8
sub ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push 0x188
push 0
mov dword [eax + 0xc], ecx
mov edi, dword [edi]
push edi
call fcn.10220d70
push edi
push 0
push 7
push dword [esp + 0x58]
call fcn.101337a0
add esp, 0x1c
test eax, eax
jne 0x1013df42
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0x98]
test ebp, ebp
jne 0x1013d95e
mov eax, dword [esp + 0x40]
mov edx, 0x10272324
mov ecx, dword [eax + 0x9c]
and ecx, 1
mov eax, ecx
xor eax, 1
test ecx, ecx
lea ebp, [eax*4 + 5]
mov eax, 0x102722d0
cmovne eax, edx
jmp 0x1013d964
mov eax, dword [ebx + 0x94]
mov dword [edi + 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xb0]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x100]
mov dword [edi + 0x44], eax
push dword [ebx + 0xa4]
call fcn.1012e140
mov dword [edi + 0x48], eax
push dword [ebx + 0xa8]
call fcn.1012e140
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0xac]
push 0x110
mov dword [edi + 0x50], eax
lea eax, [edi + 0x78]
push 0
push eax
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], connect
mov dword [edi + 0x74], ebp
call fcn.10220d70
mov eax, dword [ebx + 0xa0]
mov dword [edi + 0x80], eax
mov eax, dword [ebx + 0xa4]
mov dword [edi + 0x84], eax
mov eax, dword [ebx + 0xa8]
mov dword [edi + 0x88], eax
mov eax, dword [ebx + 0xac]
mov dword [edi + 0x8c], eax
lea eax, [esp + 0x28]
imul ebp, ebp
push eax
push ebp
push esi
call fcn.1012c510
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x1013df2f
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x1c]
call fcn.102207f0
mov eax, dword [esi]
add esp, 0xc
mov ebp, dword [esp + 0x44]
test byte [eax + 0x9c], 0x40
mov eax, dword [esp + 0x14]
jne 0x1013da56
sub eax, dword [ebp + 0x18]
mov dword [edi + 0x54], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x4c]
shl eax, 3
push eax
push esi
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
push dword [edi + 0x4c]
push dword [esp + 0x18]
call fcn.1012e110
mov eax, dword [esi]
add esp, 8
test byte [eax + 0x9c], 0x40
mov eax, dword [esp + 0x14]
jne 0x1013da99
sub eax, dword [ebp + 0x18]
mov dword [edi + 0x58], eax
lea eax, [esp + 0x14]
push eax
imul eax, dword [edi + 0x4c], 0x58
push eax
push esi
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
imul eax, dword [edi + 0x4c], 0x58
push eax
push ebx
push dword [esp + 0x1c]
call fcn.10220d70
mov eax, dword [esi]
add esp, 0xc
test byte [eax + 0x9c], 0x40
mov eax, dword [esp + 0x14]
jne 0x1013dadd
sub eax, dword [ebp + 0x18]
mov dword [edi + 0x60], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x50]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
push esi
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
mov eax, dword [edi + 0x50]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
push ebx
push dword [esp + 0x18]
call fcn.10220d70
mov eax, dword [esi]
add esp, 0xc
test byte [eax + 0x9c], 0x40
mov eax, dword [esp + 0x10]
jne 0x1013db37
sub eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [edi + 0x5c], eax
cmp dword [edi + 0x50], ebx
jbe 0x1013db6b
xor ebp, ebp
mov eax, dword [esp + 0x10]
add eax, ebp
push eax
push 0
push 7
push dword [esp + 0x4c]
call fcn.101337a0
add esp, 0x10
test eax, eax
jne 0x1013df42
inc ebx
add ebp, 0x38
cmp ebx, dword [edi + 0x50]
jb 0x1013db43
mov ebx, dword [esp + 0x40]
lea eax, [edi + 0x20]
push eax
push 0
push 7
push ebx
call fcn.101337a0
add esp, 0x10
test eax, eax
jne 0x1013df42
lea eax, [edi + 0x24]
push eax
push 0
push 7
push ebx
call fcn.101337a0
add esp, 0x10
test eax, eax
jne 0x1013df42
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x48]
shl eax, 3
push eax
push esi
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
push dword [edi + 0x48]
push dword [esp + 0x18]
call fcn.1012e110
mov ebx, esi
add esp, 8
mov eax, dword [ebx]
test byte [eax + 0x9c], 0x40
mov eax, dword [esp + 0x14]
jne 0x1013dbe7
mov ecx, dword [esp + 0x44]
sub eax, dword [ecx + 0x18]
mov ecx, dword [edi + 0x50]
xor edx, edx
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x80]
div ecx
mov eax, dword [edi + 0x88]
mov ebp, edx
mov dword [edi + 0x28], 0xffffffff
xor edx, edx
mov dword [edi + 0x2c], 0
div ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x1013de5d
xor esi, esi
nop word [eax + eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], edx
xor edx, edx
mov dword [esi + eax + 4], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 8], 0
mov eax, dword [edi + 0x80]
div dword [edi + 0x50]
test ebp, ebp
lea ecx, [eax + 1]
cmove ecx, eax
lea eax, [ebp - 1]
cmove eax, ebp
mov dword [esp + 0x30], ecx
xor ebp, ebp
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x1013dd3b
lea eax, [esp + 0x18]
push eax
push 0x30
push ebx
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x2c], 3
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx + 4]
cmp eax, 0xffffffff
je 0x1013dceb
mov ecx, dword [esp + 0x18]
add edx, 4
sub eax, ecx
add eax, esi
add eax, edx
xor edx, edx
mov dword [ecx + 0xc], eax
mov ecx, 0xc
mov eax, dword [esp + 0x18]
sub ecx, dword [eax + 0xc]
cmp dword [eax + 0xc], 0xffffffff
cmovne edx, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx + 4]
add eax, esi
mov dword [eax + ecx + 0x14], edx
jmp 0x1013dd05
mov eax, dword [esp + 0x18]
sub eax, esi
sub eax, edx
add eax, 8
mov dword [esi + edx + 8], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [esp + 0x18]
inc ebp
mov eax, dword [esp + 0x10]
sub ecx, esi
mov ebx, dword [esp + 0x24]
sub ecx, eax
sub ecx, 4
mov dword [esi + eax + 4], ecx
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, 4
sub ecx, edx
add eax, ecx
mov dword [edx + 0x10], eax
cmp ebp, dword [esp + 0x30]
jb 0x1013dc77
mov eax, dword [edi + 0x88]
xor edx, edx
div dword [edi + 0x50]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x1013dd53
dec edx
mov dword [esp + 0x28], edx
cmp dword [esp + 0x34], 0
lea ecx, [eax + 1]
cmovbe ecx, eax
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x34], ecx
mov dword [esi + eax + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x10], 0
test ecx, ecx
je 0x1013de3f
lea eax, [esp + 0x1c]
push eax
push 0x4c
push ebx
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx + 0xc]
cmp eax, 0xffffffff
je 0x1013dde0
mov ecx, dword [esp + 0x1c]
add edx, 0xc
sub eax, ecx
add eax, esi
add eax, edx
xor edx, edx
mov dword [ecx + 0x10], eax
mov ecx, 0x10
mov eax, dword [esp + 0x1c]
sub ecx, dword [eax + 0x10]
cmp dword [eax + 0x10], 0xffffffff
cmovne edx, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx + 0xc]
add eax, esi
mov dword [eax + ecx + 0x20], edx
jmp 0x1013ddfa
mov eax, dword [esp + 0x1c]
sub eax, esi
sub eax, edx
add eax, 4
mov dword [esi + edx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x10], 0xffffffff
mov ecx, dword [esp + 0x1c]
inc ebp
mov eax, dword [esp + 0x10]
sub ecx, esi
mov ebx, dword [esp + 0x24]
sub ecx, eax
sub ecx, 0xc
mov dword [esi + eax + 0xc], ecx
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add eax, 0xc
sub ecx, edx
add eax, ecx
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], 0
cmp ebp, dword [esp + 0x34]
jb 0x1013dd84
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esi, 0x38
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [edi + 0x50]
jae 0x1013de5d
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
jmp 0x1013dc30
xor esi, esi
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
cmp dword [edi + 0x84], esi
jbe 0x1013df1c
mov ebp, dword [esp + 0x44]
add ebp, 4
nop
lea eax, [esp + 0x20]
push eax
push 0x68
push ebp
call fcn.1012c510
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1013df2f
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
je 0x1013dede
mov ecx, dword [esp + 0x20]
xor edx, edx
sub eax, ecx
add eax, 0x30
add eax, edi
mov dword [ecx + 0x2c], eax
mov ecx, 0x2c
mov eax, dword [esp + 0x20]
sub ecx, dword [eax + 0x2c]
cmp dword [eax + 0x2c], 0xffffffff
mov eax, dword [edi + 0x30]
cmovne edx, ecx
mov dword [eax + edi + 0x60], edx
jmp 0x1013def5
mov eax, dword [esp + 0x20]
sub eax, edi
sub eax, 4
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
mov ecx, edi
sub eax, edi
inc esi
sub eax, 0x30
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x20]
sub ecx, eax
add ecx, 0x30
mov dword [eax + 0x30], ecx
cmp esi, dword [edi + 0x84]
jb 0x1013de90
mov eax, dword [edi]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x28], eax
xor eax, eax
pop ebx
add esp, 0x2c
ret
push str.unable_to_allocate_memory_for_the_lock_table
push dword [esp + 0x44]
call fcn.100d0920
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret