Function at 0x490a34
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov dword [esp], 0
call sub.msvcrt.dll_time
mov esi, eax
mov eax, dword [ebx + 0xcc38]
test eax, eax
jne 0x490aa8
mov dword [ebx + 0xcc38], 2
lea edi, [ebx + 0x108]
mov dword [esp], edi
call fcn.004a0520
test eax, eax
je 0x490f48
mov dword [esp], eax
call fcn.00498900
cmp eax, 0xffffffdb
jne 0x490a66
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x490f5a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004906d8
test eax, eax
je 0x490a4c
add esp, 0x20
pop ebx
pop esi
pop edi
ret
cmp eax, 2
je 0x490f64
cmp eax, 3
je 0x490f08
test byte [ebx + 0x34], 2
je 0x490bbf
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x490ade
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x490ade
lea edx, [ebx + 0x5c]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x490afe
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x490afe
lea edx, [ebx + 0xd8]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0xe8]
test eax, eax
je 0x490b26
mov eax, dword [eax + 0x18]
test eax, eax
je 0x490b26
lea edx, [ebx + 0xec]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0xdc]
test eax, eax
je 0x490b46
mov eax, dword [eax + 0x14]
test eax, eax
je 0x490b46
lea edx, [ebx + 0xe4]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x490b66
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x490b66
lea edx, [ebx + 0xa0]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x490b8e
mov eax, dword [eax + 0x18]
test eax, eax
je 0x490b8e
lea edx, [ebx + 0xb4]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x490bae
mov eax, dword [eax + 0x14]
test eax, eax
je 0x490bae
lea edx, [ebx + 0xac]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x490bbf
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x490bd3
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x490be7
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x490bf8
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x490c09
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x490c1d
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x490c31
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x490c45
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x490c59
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xfc]
test eax, eax
je 0x490c6d
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x490c81
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x490c95
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x490ca9
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x490cbd
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x490cd1
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcb30]
test eax, eax
je 0x490ce5
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcb3c]
test eax, eax
je 0x490cf9
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd60]
test eax, eax
je 0x490d0d
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd70]
test eax, eax
je 0x490d21
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd7c]
test eax, eax
je 0x490d35
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd94]
test eax, eax
je 0x490d49
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd9c]
test eax, eax
je 0x490d5d
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcd8c]
test eax, eax
je 0x490d71
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcdb0]
test eax, eax
je 0x490d85
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcdb8]
test eax, eax
je 0x490d99
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcdc0]
test eax, eax
je 0x490dad
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcdd8]
test eax, eax
je 0x490dc1
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcde0]
test eax, eax
je 0x490dd5
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcdf4]
test eax, eax
je 0x490de9
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xce18]
test eax, eax
je 0x490dfd
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xce20]
test eax, eax
je 0x490e11
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xce30]
test eax, eax
je 0x490e25
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xce44]
test eax, eax
je 0x490e39
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xce60]
test eax, eax
je 0x490e4d
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xcf54]
test eax, eax
je 0x490e61
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov eax, dword [ebx + 0xd078]
test eax, eax
je 0x490e75
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
lea edi, [ebx + 0x100]
jmp 0x490e9f
mov dword [esp], esi
call fcn.004a0538
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [ebx + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [ebx + 0xc]
mov dword [esp], edi
call fcn.004a0520
mov esi, eax
test eax, eax
jne 0x490e80
mov esi, dword [ebx + 0x128]
test esi, esi
jne 0x490edc
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x490ec8
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [ebx + 0xc]
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call sub.WS2_32.dll_ioctlsocket
sub esp, 0xc
jmp 0x490eb7
lea edi, [ebx + 0x114]
mov dword [esp], edi
call fcn.004a0520
test eax, eax
je 0x490f39
nop
mov dword [esp], eax
call fcn.00498a80
cmp eax, 0xffffffdb
je 0x490a83
mov dword [esp], edi
call fcn.004a0520
test eax, eax
jne 0x490f1c
mov dword [ebx + 0xcc38], 4
jmp 0x490aba
mov dword [ebx + 0xcc38], 3
lea edi, [ebx + 0x114]
jmp 0x490f0e
mov eax, 0xffffffdb
jmp 0x490a9e
lea edi, [ebx + 0x108]
jmp 0x490a66