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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
push edi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x34]
mov eax, dword [esp + 0x7c]
test eax, eax
push closesocket
push 0x1058dafb
mov dword [esp + 0x18], ebp
cmovne edi, eax
mov dword [esp + 0x3c], 0x1058dafb
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 1
mov dword [esp + 0x48], 0
call fcn.1050b4f0
xor edx, edx
add esp, 8
test eax, eax
mov ecx, eax
cmovle edx, eax
sub ecx, edx
cmp ecx, eax
cmovge ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
lea ecx, [edx + 0x1058dafb]
test ecx, ecx
je 0x104fdadc
cmp eax, 0x7fffffff
jne 0x104fdadc
push eax
push ecx
call fcn.1050b4f0
add esp, 8
mov al, byte [esp + 0x74]
lea esi, [esp + 0x24]
test al, al
mov word [esp + 0x54], 0
mov edx, 8
mov byte [esp + 0x55], 0x20
mov ecx, 0x20
mov dword [esp + 0x24], 0x1058dafb
cmovne ecx, edx
mov dword [esp + 0x28], 0
add al, 2
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
mov byte [esp + 0x54], cl
movups xmmword [esp + 0x44], xmm0
mov byte [esp + 0x46], al
mov eax, dword [esp + 0x64]
mov byte [esp + 0x50], al
shr eax, 8
mov byte [esp + 0x51], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x52], al
shr eax, 8
test edi, edi
push closesocket
push 0x1058dafb
mov byte [esp + 0x5b], al
cmovne esi, edi
mov byte [esp + 0x34], 1
mov dword [esp + 0x38], 0
call fcn.1050b4f0
xor edx, edx
add esp, 8
test eax, eax
mov ecx, eax
cmovle edx, eax
sub ecx, edx
cmp ecx, eax
cmovge ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
lea ecx, [edx + 0x1058dafb]
test ecx, ecx
je 0x104fdb99
cmp eax, 0x7fffffff
jne 0x104fdb99
push eax
push ecx
call fcn.1050b4f0
add esp, 8
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push esi
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov eax, dword [esp + 0x1c]
movzx ecx, al
imul ecx, dword [esp + 0x64]
shr ecx, 3
cmp byte [esp + 0x78], 0
mov dword [esp + 0x1c], ecx
je 0x104fdca6
mov eax, dword [esp + 0x14]
lea ebp, [eax - 1]
imul ebp, dword [esp + 0x18]
add ebp, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test eax, eax
je 0x104fdd91
nop dword [eax + eax]
cmp dword [edi + 0xc], 0
jne 0x104fdd91
test edi, edi
mov dword [esp + 0x24], 0x1058dafb
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
cmovne eax, edi
mov byte [esp + 0x2c], 1
push closesocket
push 0x1058dafb
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
call fcn.1050b4f0
xor edx, edx
add esp, 8
test eax, eax
mov ecx, eax
cmovle edx, eax
sub ecx, edx
cmp ecx, eax
cmovge ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
lea ecx, [edx + 0x1058dafb]
test ecx, ecx
je 0x104fdc68
cmp eax, 0x7fffffff
jne 0x104fdc68
push eax
push ecx
call fcn.1050b4f0
add esp, 8
push dword [esp + 0x20]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x20]
push ebp
call dword [eax + 4]
sub ebp, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x104fdbf0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret
mov eax, dword [esp + 0x18]
cmp eax, ecx
jne 0x104fdcd4
imul eax, dword [esp + 0x14]
push edi
push eax
push ebp
push ebx
call fcn.104d46c0
add esp, 0x10
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
jbe 0x104fdd91
nop word [eax + eax]
cmp dword [edi + 0xc], 0
jne 0x104fdd91
test edi, edi
mov dword [esp + 0x24], 0x1058dafb
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
cmovne eax, edi
mov byte [esp + 0x2c], 1
push closesocket
push 0x1058dafb
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
call fcn.1050b4f0
xor edx, edx
add esp, 8
test eax, eax
mov ecx, eax
cmovle edx, eax
sub ecx, edx
cmp ecx, eax
cmovge ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
lea ecx, [edx + 0x1058dafb]
test ecx, ecx
je 0x104fdd68
cmp eax, 0x7fffffff
jne 0x104fdd68
push eax
push ecx
call fcn.1050b4f0
add esp, 8
push dword [esp + 0x20]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x20]
push ebp
call dword [eax + 4]
add ebp, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x104fdcf0
mov ecx, dword [esp + 0x58]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret