Function at 0x413c40
Capabilities:
Get file attributes
Get number of processors
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x49b028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
xor eax, eax
push ebx
mov dword [esp + 0x44c], eax
push ebp
mov dword [esp + 0x454], eax
push esi
mov dword [esp + 0x45c], eax
push edi
mov ebp, ecx
mov dword [esp + 0x464], eax
push 0x410
mov dword [esp + 0x884], eax
call fcn.0048c144
mov ecx, dword [0x4cc854]
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0x88c]
push 0x12c
mov byte [esp + 0x884], 1
mov dword [esp + 0x30], edx
mov byte [ebp + 0x15], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x888]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0x410
rep movsb byte es:[edi], byte [esi]
je 0x413d32
mov eax, 0x410
sub eax, ebx
je 0x413d32
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x45c]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x413d32
mov edx, dword [esp + 0x28]
mov ecx, eax
lea esi, [esp + 0x458]
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
cmp ebx, 0x410
rep movsb byte es:[edi], byte [esi]
jne 0x413ce7
mov ebx, dword [esp + 0x28]
mov ecx, 0x104
mov esi, ebx
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x18]
push eax
call fcn.0048c471
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x884], 2
call fcn.0048a454
mov esi, eax
mov eax, dword [0x4cc854]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
xor edi, edi
mov byte [esp + 0x880], 4
cmp esi, edi
jle 0x413e0f
lea ecx, [esi + 1]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.0048a3dc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x884], 5
call fcn.0048c53c
lea ecx, [esp + 0x10]
mov byte [esp + 0x880], 4
call fcn.0048c403
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
push eax
call fcn.0048c833
push eax
mov ecx, ebp
call fcn.00414be0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
sub eax, esi
dec eax
push eax
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x884], 6
call fcn.0048c53c
lea ecx, [esp + 0x10]
mov byte [esp + 0x880], 4
call fcn.0048c403
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
push eax
call fcn.0048c833
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x413e4e
cmp dword [esp + 0x50], edi
je 0x413ed1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0048c178
mov ecx, ebp
call fcn.004151f0
lea ecx, [esp + 0x38]
call fcn.00490080
push edi
lea eax, [esp + 0x58]
push 0x1001
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88c], 7
mov dword [esp + 0x2c], edi
call fcn.00490192
test eax, eax
jne 0x413e83
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x50]
cmp ecx, edi
jne 0x413f0f
cmp dword [esp + 0x20], 1
je 0x413e9f
lea ecx, [esp + 0x38]
call fcn.004903ad
mov edx, dword [esp + 0x4c]
xor ecx, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov byte [esp + 0x18], cl
mov dword [esp + 0x14], edx
call fcn.00474ffd
mov edx, dword [ebp]
add esp, 4
mov ecx, ebp
push eax
push 0x64
push 8
call dword [edx + 0x10]
push ebx
jmp 0x414068
mov ecx, dword [esp + 0x4c]
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
mov byte [esp + 0x18], al
mov dword [esp + 0x14], ecx
call fcn.00474ffd
mov edx, dword [ebp]
add esp, 4
mov ecx, ebp
push eax
push 0x64
push 8
call dword [edx + 0x10]
push ebx
call fcn.0048c16d
add esp, 4
mov byte [ebp + 0x15], 0
jmp 0x414085
xor eax, eax
xor edx, edx
div ecx
mov edx, dword [ebp]
push edi
mov ecx, ebp
push eax
push 7
mov dword [esp + 0x40], eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x50]
xor ebx, ebx
test eax, eax
jbe 0x414006
mov ecx, dword [esp + 0x50]
mov eax, 0xfc0fc0fd
sub ecx, edi
mul ecx
mov esi, edx
mov eax, ecx
xor edx, edx
mov ecx, 0x410
shr esi, 0xa
div ecx
test esi, esi
je 0x413f66
mov eax, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x45c]
push ecx
push edx
push eax
jmp 0x413f7a
test edx, edx
je 0x413f82
push 0
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x460]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x413ff6
mov eax, dword [esp + 0x28]
mov ecx, ebx
add edi, ebx
mov edx, ecx
mov dword [esp + 0x10], edi
lea esi, [esp + 0x458]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x20], 1
je 0x413fbb
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004902e9
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x34]
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [esp + 0x50]
cmp ecx, eax
jae 0x413fe7
mov edx, dword [ebp]
push 0
push eax
push 7
mov ecx, ebp
mov dword [esp + 0x40], eax
call dword [edx + 0x10]
cmp esi, dword [esp + 0x50]
jae 0x414006
mov edi, dword [esp + 0x10]
jmp 0x413f33
cmp edi, dword [esp + 0x50]
jae 0x414006
mov dword [esp + 0x20], 2
jmp 0x41400d
cmp dword [esp + 0x20], 1
je 0x41401f
lea ecx, [esp + 0x38]
call fcn.0049038c
lea ecx, [esp + 0x38]
call fcn.004903ad
mov eax, dword [esp + 0x20]
test eax, eax
je 0x414037
mov eax, dword [ebp]
push 0
push 0
push 0xa
mov ecx, ebp
call dword [eax + 0x10]
jmp 0x414063
mov edx, dword [esp + 0x4c]
xor ecx, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov byte [esp + 0x18], cl
mov dword [esp + 0x14], edx
call fcn.00474ffd
mov edx, dword [ebp]
add esp, 4
mov ecx, ebp
push eax
push 0x64
push 8
call dword [edx + 0x10]
mov eax, dword [esp + 0x28]
push eax
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x38]
mov byte [ebp + 0x15], 0
mov byte [esp + 0x880], 4
call fcn.004900d5
lea ecx, [esp + 0x24]
mov byte [esp + 0x880], 3
call fcn.0048c403
lea ecx, [esp + 0x1c]
mov byte [esp + 0x880], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0x880], 1
call fcn.0048c403
lea ecx, [esp + 0x30]
mov byte [esp + 0x880], 0
call fcn.0048c403
mov ecx, dword [esp + 0x878]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x874
ret 8