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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov ecx, dword [eax + 8]
push edi
push eax
mov dword [esp + 0x2c], ecx
call fcn.10125b10
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
add esp, 4
mov eax, dword [edx + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x18]
mov ebp, eax
xor edi, edi
xor esi, esi
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x10], ebx
lea ecx, [eax + ecx*8]
cmp ebp, ecx
mov dword [esp + 0x18], ecx
jae 0x1013d05b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push edx
push ebp
call fcn.1013d340
add esp, 0x10
test eax, eax
je 0x1013d04c
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
jl 0x1013d027
xor eax, eax
mov edx, closesocket
jmp 0x1013d033
mov eax, 1
xor edx, edx
call fcn.10146d80
mov ecx, eax
mov ebx, edx
and ecx, edi
and ebx, esi
or ecx, ebx
mov ebx, dword [esp + 0x10]
jne 0x1013d04c
inc ebx
or edi, eax
mov dword [esp + 0x10], ebx
or esi, edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
add ebp, 0x28
cmp ebp, eax
jb 0x1013cffe
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], 0x3f
not edi
mov dword [ecx + 4], ebx
mov eax, dword [edx + 0x30]
mov ebp, dword [edx + 0x34]
mov edx, dword [esp + 0x1c]
not esi
or esi, 0x80000000
and edi, eax
mov eax, dword [edx + 8]
and esi, ebp
cmp eax, 0x3f
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], eax
jge 0x1013d09a
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
xor esi, esi
test edx, edx
jle 0x1013d0d4
mov ecx, esi
mov eax, 1
xor edx, edx
call fcn.10146d80
mov ecx, dword [esp + 0x34]
and eax, edi
and edx, ecx
or eax, edx
je 0x1013d0bf
inc ebx
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x1013d0a4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
and ebp, 0x80000000
xor edx, edx
or edx, ebp
je 0x1013d0ea
lea eax, [ebx + eax - 0x3f]
mov dword [esp + 0x10], eax
mov ebx, eax
mov ebp, dword [ecx]
mov edx, dword [esp + 0x3c]
or ebp, 0x810002
mov dword [ecx], ebp
mov eax, dword [edx]
lea ecx, [ebx + ebx*8 + 0x30]
push ecx
push eax
call fcn.100fc640
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
je 0x1013d337
mov ecx, dword [esp + 0x50]
lea eax, [esi + 0x30]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [ecx + 0x10], esi
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
lea eax, [eax + ebx*4]
mov dword [esi + 4], eax
mov dword [esi], str.auto_index
lea edx, [eax + ebx*4]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0xc], eax
mov ebx, dword [ecx + 0x20]
cmp ebx, dword [esp + 0x18]
jae 0x1013d1fd
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
push ebx
call fcn.1013d340
add esp, 0x10
test eax, eax
je 0x1013d1ee
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x40
jl 0x1013d183
xor eax, eax
mov edx, closesocket
jmp 0x1013d18f
mov eax, 1
xor edx, edx
call fcn.10146d80
mov edi, dword [esp + 0x20]
mov ecx, eax
and ecx, edi
mov edi, edx
and edi, dword [esp + 0x24]
or ecx, edi
jne 0x1013d1ea
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx]
or edi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
or edi, edx
mov edx, dword [esi + 4]
mov dword [esp + 0x24], edi
mov dword [edx + ebp*4], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.101252a0
add esp, 0xc
test eax, eax
je 0x1013d1dd
mov eax, dword [eax]
jmp 0x1013d1e2
mov eax, str.BINARY
mov ecx, dword [esi + 0x20]
inc ebp
mov dword [ecx + ebp*4 - 4], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add ebx, 0x28
cmp ebx, eax
jb 0x1013d156
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x1013d23d
mov ecx, ebx
mov eax, 1
xor edx, edx
call fcn.10146d80
mov ecx, dword [esp + 0x34]
and eax, edi
and edx, ecx
or eax, edx
je 0x1013d234
mov edx, dword [esi + 4]
inc ebp
mov dword [edx + ebp*4 - 4], ebx
mov eax, dword [esi + 0x20]
mov dword [eax + ebp*4 - 4], 0x1017cd78
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x1013d207
mov ecx, dword [esp + 0x44]
xor eax, eax
mov ecx, dword [ecx + 0x34]
and ecx, 0x80000000
or eax, ecx
je 0x1013d282
mov edx, dword [esp + 0x1c]
mov ecx, 0x3f
cmp dword [edx + 8], ecx
jle 0x1013d282
lea eax, [ebp*4]
mov edi, dword [esi + 4]
add eax, 4
mov dword [eax + edi - 4], ecx
mov edi, dword [esi + 0x20]
inc ecx
mov dword [eax + edi - 4], 0x1017cd78
mov edi, dword [edx + 8]
cmp ecx, edi
jl 0x1013d265
mov ebp, dword [esp + 0x3c]
push esi
push ebp
call fcn.1012c7f0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x30]
push 0xfffffffffffffff0
push eax
mov eax, dword [ebx + 0x20]
inc edx
push 0
push edx
push eax
push 0x29
push edi
call fcn.10122d70
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x48
push edi
call fcn.101241e0
push ebp
mov dword [esp + 0x78], eax
call fcn.10123790
mov edx, dword [esp + 0x84]
mov ebx, eax
push 1
push ebx
mov eax, dword [edx + 0x1c]
push eax
push esi
push ebp
call fcn.1012d590
mov ecx, dword [esp + 0x98]
add esp, 0x48
mov edx, dword [ecx + 0x20]
push ebx
push edx
push 0x61
push edi
call fcn.10123750
push 0x10
push edi
call fcn.10123c80
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x1c]
lea eax, [esi + 1]
push eax
push edx
push 0x5f
push edi
call fcn.10123750
push 3
push edi
call fcn.10123c80
push esi
push edi
call fcn.10123770
push ebx
push ebp
call fcn.101237c0
mov eax, dword [esp + 0x6c]
add esp, 0x40
push eax
push edi
call fcn.10123770
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret