Function at 0x4994fc
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.00404044
mov eax, dword [ebp - 8]
call fcn.00404044
xor eax, eax
push ebp
push 0x499e4e
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 + 0x1400], bl
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
mov eax, dword [ebp - 4]
call fcn.0048f5a4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x499e26
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00497dc4
xor eax, eax
push ebp
push 0x4995b2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f724]
call fcn.00413b7c
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4995f2
mov eax, dword [ebp - 0x20]
call fcn.004135e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
lea eax, [ebp - 0x20]
call fcn.00463138
xor edx, edx
push ebp
push 0x499e1c
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48db40]
call fcn.0048defc
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.00492068
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], 0x49b010
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 0x4996f7
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xa
je 0x4996f7
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xb
je 0x4996f7
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xd
jne 0x499763
mov bl, 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049a594
test al, al
je 0x499729
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x499729
mov eax, dword [ebp - 0x14]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403fa0
jne 0x499763
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0xe2
je 0x49973e
test ax, ax
jne 0x499761
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov ecx, dword [0x54988c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407dd4]
call fcn.0040bbb8
call fcn.00403688
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x499783
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.00403728
jmp 0x499e26
test bl, bl
je 0x4997fe
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.0040898c
mov edx, dword [ebp - 0x2c]
mov eax, 0x499e84
call fcn.00404178
test eax, eax
jle 0x4997c6
push ebp
call fcn.004992ec
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x4997c6
call fcn.00403728
jmp 0x499e26
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00497fdc
test al, al
jne 0x499895
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 1
call fcn.00403728
jmp 0x499e26
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1408]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1404]
mov eax, dword [ebp - 4]
call fcn.0049ca14
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x308]
mov dword [esi + 0xf0], eax
mov eax, esi
mov dl, 1
call fcn.004906d8
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x499861
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.00492f3c
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004921ac
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00403e98
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0049a9b4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x4998b5
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.00403728
jmp 0x499e26
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.0049b120
test al, al
je 0x4998cd
call fcn.00403728
jmp 0x499e26
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x4998fe
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 0x499924
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.0040898c
mov edx, dword [ebp - 0x2c]
mov eax, 0x499e84
call fcn.00404178
test eax, eax
jne 0x499941
push ebp
call fcn.004992ec
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x499941
call fcn.00403728
jmp 0x499e26
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x4999a3
cmp ax, 0x258
jge 0x4999a3
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x13be], 0
jne 0x499978
call fcn.00403728
jmp 0x499e26
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 0x4999a3
call fcn.00403728
jmp 0x499e26
mov eax, dword [ebp - 4]
test byte [eax + 0x2e9], 2
jne 0x4999bd
test bl, bl
jne 0x4999bd
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049b628
mov eax, dword [ebp - 4]
cmp word [eax + 0x138e], 0
je 0x4999dc
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 0x499a19
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x499a19
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.0048fdf8
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.00491a84
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x499bb2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x499bb2
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x499bb2
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.004909e4
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor edx, edx
push ebp
push 0x499bab
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.00403cac
jmp 0x499b5a
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049a424
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x334]
call fcn.00403fa0
je 0x499b5a
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403fa0
je 0x499b5a
lea eax, [ebp - 0x1c]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403cac
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x499b43
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 0x499b8b
test ax, ax
je 0x499b8b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x499b8b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
je 0x499add
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499be8
mov eax, dword [ebp - 4]
call fcn.00490a34
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x499bd1
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 0x499e26
cmp byte [ebp - 0x21], 0
jne 0x499c11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.00491a84
cmp byte [ebp - 0x21], 0
jne 0x499d16
mov edx, dword [ebp - 4]
cmp byte [edx + 0x329], 0
jne 0x499d16
mov edx, dword [ebp - 4]
cmp byte [edx + 0x32a], 0
jne 0x499d16
mov edx, dword [ebp - 4]
cmp word [edx + 0x2d8], 0xc7
jge 0x499d16
mov edx, dword [ebp - 4]
cmp dword [edx + 0x308], 0
je 0x499c77
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
test eax, eax
je 0x499d16
cmp byte [eax + 0x329], 0
jne 0x499d16
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.004909e4
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor eax, eax
push ebp
push 0x499d0f
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x499cb0
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049a424
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x499cef
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x499cef
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x499cef
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0
je 0x499cef
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x499c9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499d16
mov eax, dword [ebp - 4]
call fcn.00490a34
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 0
jne 0x499dae
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x2d8]
cmp bx, 0x12c
jle 0x499d8e
cmp bx, 0x258
jge 0x499d8e
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.0040898c
mov edx, dword [ebp - 0x2c]
mov eax, 0x499e94
call fcn.00404178
test eax, eax
jg 0x499d82
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.0040898c
mov edx, dword [ebp - 0x2c]
mov eax, 0x499ea8
call fcn.00404178
test eax, eax
jle 0x499d8e
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
jmp 0x499dae
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x499dae
cmp ax, 0x258
jge 0x499dae
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
cmp byte [ebp - 0x21], 0
jne 0x499dd3
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x499dd3
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 0x499df4
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 0x499e1b
mov eax, dword [ebp - 4]
cmp word [eax + 0x13b6], 0
je 0x499e1b
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 0x499e55
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403c38
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403c38
ret