Function at 0x4958c4
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount
Get number of processors
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00403fd8
mov eax, dword [ebp - 8]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x49623a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x1404], bl
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
mov eax, dword [ebp - 4]
call fcn.0048b598
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x496212
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00494170
xor eax, eax
push ebp
push 0x49597a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f680]
call fcn.00413cb8
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4959ba
mov eax, dword [ebp - 0x20]
call fcn.0041371c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
lea eax, [ebp - 0x20]
call fcn.004555e0
xor edx, edx
push ebp
push 0x496208
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x489830]
call fcn.00489be8
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c8]
mov eax, esi
call fcn.0048e074
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x142c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x497394
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x8c]
mov dword [eax + 0x8c], ecx
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x90], ecx
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x314]
mov byte [eax + 0x314], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x31c]
mov dword [eax + 0x31c], edx
mov byte [eax + 0x310], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x13f8], 0
mov dword [eax + 0x13fc], 0
cmp bl, 1
je 0x495acb
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xa
je 0x495acb
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0x10
je 0x495acb
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xb
je 0x495acb
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xd
jne 0x495b37
mov bl, 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004968d4
test al, al
je 0x495afd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x495afd
mov eax, dword [ebp - 0x14]
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403f34
jne 0x495b37
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0xe2
je 0x495b12
test ax, ax
jne 0x495b35
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov ecx, dword [0x54c6b8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407d28]
call fcn.0040badc
call fcn.0040361c
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x495b57
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.004036bc
jmp 0x496212
test bl, bl
je 0x495bea
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.004088e0
mov edx, dword [ebp - 0x2c]
mov eax, 0x496270
call fcn.0040410c
test eax, eax
jle 0x495b9e
push ebp
call fcn.004956b4
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x495b9e
call fcn.004036bc
jmp 0x496212
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00494388
test al, al
jne 0x495c81
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4914ac]
call fcn.0040badc
call fcn.0040361c
call fcn.004036bc
jmp 0x496212
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x140c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1408]
mov eax, dword [ebp - 4]
call fcn.00499080
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x308]
mov dword [esi + 0xf0], eax
mov eax, esi
mov dl, 1
call fcn.0048c630
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x495c4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0048f01c
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.0048e1b8
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00403e2c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00496d38
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x495ca1
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.004036bc
jmp 0x496212
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.004974a4
test al, al
je 0x495cb9
call fcn.004036bc
jmp 0x496212
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x495cea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
test bl, bl
je 0x495d10
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.004088e0
mov edx, dword [ebp - 0x2c]
mov eax, 0x496270
call fcn.0040410c
test eax, eax
jne 0x495d2d
push ebp
call fcn.004956b4
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x495d2d
call fcn.004036bc
jmp 0x496212
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x495d8f
cmp ax, 0x258
jge 0x495d8f
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x13be], 0
jne 0x495d64
call fcn.004036bc
jmp 0x496212
mov byte [ebp - 0x22], 0
push 0xf
lea ecx, [ebp - 0x22]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x13c0]
call dword [esi + 0x13bc]
cmp byte [ebp - 0x22], 0
jne 0x495d8f
call fcn.004036bc
jmp 0x496212
mov eax, dword [ebp - 4]
test byte [eax + 0x2e9], 2
jne 0x495da9
test bl, bl
jne 0x495da9
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00497a58
mov eax, dword [ebp - 4]
cmp word [eax + 0x138e], 0
je 0x495dc8
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1390]
call dword [ebx + 0x138c]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x495e05
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x495e05
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 0xc]
call fcn.0048bd50
mov word [ebp - 0x26], 0
mov word [ebp - 0x24], 0x64
push 4
lea eax, [ebp - 0x26]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x33c]
push eax
call sub.wsock32.dll_setsockopt
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x33c]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.0048da08
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x495f9e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x495f9e
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x495f9e
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048c93c
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor edx, edx
push ebp
push 0x495f97
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x334]
call fcn.00403c40
jmp 0x495f46
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00496764
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x334]
call fcn.00403f34
je 0x495f46
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403f34
je 0x495f46
lea eax, [ebp - 0x1c]
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x495f2f
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x32c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0xc7
jge 0x495f77
test ax, ax
je 0x495f77
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x495f77
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
je 0x495ec9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495fd4
mov eax, dword [ebp - 4]
call fcn.0048c98c
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x495fbd
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x32c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov byte [ebp - 0x21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496212
cmp byte [ebp - 0x21], 0
jne 0x495ffd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.0048da08
cmp byte [ebp - 0x21], 0
jne 0x496102
mov edx, dword [ebp - 4]
cmp byte [edx + 0x329], 0
jne 0x496102
mov edx, dword [ebp - 4]
cmp byte [edx + 0x32a], 0
jne 0x496102
mov edx, dword [ebp - 4]
cmp word [edx + 0x2d8], 0xc7
jge 0x496102
mov edx, dword [ebp - 4]
cmp dword [edx + 0x308], 0
je 0x496063
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
test eax, eax
je 0x496102
cmp byte [eax + 0x329], 0
jne 0x496102
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048c93c
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor eax, eax
push ebp
push 0x4960fb
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x49609c
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00496764
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x4960db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x4960db
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x4960db
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0
je 0x4960db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x49608a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496102
mov eax, dword [ebp - 4]
call fcn.0048c98c
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 0
jne 0x49619a
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x2d8]
cmp bx, 0x12c
jle 0x49617a
cmp bx, 0x258
jge 0x49617a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.004088e0
mov edx, dword [ebp - 0x2c]
mov eax, 0x496280
call fcn.0040410c
test eax, eax
jg 0x49616e
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.004088e0
mov edx, dword [ebp - 0x2c]
mov eax, 0x496294
call fcn.0040410c
test eax, eax
jle 0x49617a
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
jmp 0x49619a
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x49619a
cmp ax, 0x258
jge 0x49619a
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
cmp byte [ebp - 0x21], 0
jne 0x4961bf
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x4961bf
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x308]
test esi, esi
je 0x4961e0
mov eax, esi
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x308], edx
cmp byte [ebp - 0x21], 0
je 0x496207
mov eax, dword [ebp - 4]
cmp word [eax + 0x13b6], 0
je 0x496207
mov ebx, dword [ebp - 4]
mov cl, 0xf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x13b8]
call dword [ebx + 0x13b4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496241
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403bcc
ret