Function at 0x484550
Capabilities:
Check os version

Disassembly:
sub esp, 0x508
push ebx
push esi
push edi
push ebp
call fcn.0047cae0
test byte [0x4762a8], 1
je 0x484573
test al, 1
je 0x484573
mov ebx, 1
jmp 0x48458d
test byte [0x4762a8], 2
je 0x484ae3
test al, 2
je 0x484ae3
mov ebx, 2
lea eax, [esp + 0x1e0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esp + 0x1e0], 0x94
push eax
call ebp
cmp dword [esp + 0x1f0], 2
je 0x484602
cmp ebx, 2
jne 0x484612
mov ecx, dword [esp + 0x534]
mov eax, dword [esp + 0x530]
mov edx, dword [esp + 0x52c]
push ecx
mov ecx, dword [esp + 0x52c]
push eax
mov eax, dword [esp + 0x52c]
push edx
mov esi, dword [esp + 0x52c]
push ecx
mov ecx, dword [esp + 0x52c]
push eax
push esi
push ecx
call fcn.00483e40
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
cmp ebx, 2
jne 0x484612
push 0x3e8
push 2
push 6
jmp 0x484618
push 0x11
push 2
push 2
call fcn.004826f0
add esp, 0xc
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x484637
mov eax, 0x3f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
push ebp
call fcn.00483d50
add esp, 4
push 1
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
cmp eax, 0xffffffff
jne 0x48466b
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x41
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
mov eax, dword [0x477a38]
push eax
call fcn.0047ec50
add esp, 4
test eax, eax
jne 0x4846ae
mov eax, dword [0x477a38]
push eax
call fcn.0047ec60
mov ax, word [eax]
add esp, 4
cmp ax, 6
jne 0x484699
cmp ebx, 2
je 0x4846ae
cmp ax, 2
jne 0x4846a4
cmp ebx, 1
je 0x4846ae
mov dword [0x47667c], 1
cmp dword [0x47667c], 0
je 0x4847ef
push 0x477a38
call fcn.0047ec80
add esp, 4
cmp ebx, 2
jne 0x48473d
push 0xe
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
jne 0x484704
push 0
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov word [esi + 0xc], di
mov word [esi], 6
call fcn.00483d60
push eax
call fcn.00482820
mov word [esi + 0xc], ax
add esp, 4
lea eax, [esi + 6]
mov dword [esi + 2], edi
mov dword [eax], 0xffffffff
mov word [eax + 4], 0xffff
jmp 0x48479f
push 0x10
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
jne 0x484774
push 0
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esi], 2
call fcn.00483d60
push eax
call fcn.00482820
mov word [esi + 2], ax
add esp, 4
mov dword [esi + 4], 0xffffffff
push esi
push 0x477a38
call fcn.0047ec90
add esp, 8
mov eax, dword [0x477a38]
push eax
call fcn.0047ec50
add esp, 4
test eax, eax
je 0x4847e5
push 0
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x41
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
mov dword [0x47667c], 0
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
test eax, eax
jge 0x48480e
mov eax, 0x4a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
push 0
call dword [sym.imp.MSVCRT.dll_time]
cdq
add esp, 4
xor eax, edx
sub eax, edx
mov dword [esp + 0x4c], 0xffffffff
and eax, 0x1fff
lea edi, [esp + 0x50]
xor eax, edx
mov ecx, 0x64
mov dword [esp + 0x40], 0x3f
mov dword [esp + 0x48], 0
sub eax, edx
mov dword [esp + 0x44], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x520]
mov ecx, 0xffffffff
mov edi, esi
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x477a38]
push esi
call fcn.0047ec50
add esp, 4
test eax, eax
jne 0x4848d2
push esi
call fcn.0047ec60
add esp, 4
push 0x10
push eax
lea eax, [esp + 0x48]
push 0
push 0x1a0
push eax
call fcn.00483d40
push eax
call fcn.004827a0
add esp, 0x18
cmp eax, 0x1a0
jne 0x484978
push esi
call fcn.0047ec70
add esp, 4
mov esi, eax
push esi
call fcn.0047ec50
add esp, 4
test eax, eax
je 0x484889
push 0
xor esi, esi
call dword [sym.imp.MSVCRT.dll_time]
add eax, dword [esp + 0x528]
mov dword [esp + 0x20], eax
add esp, 4
mov edi, dword [esp + 0x1c]
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
sub edi, eax
mov dword [esp + 0x14], edi
jns 0x484911
mov dword [esp + 0x14], 0
mov dword [esp + 0x274], 0
call fcn.00483d40
lea ecx, [esp + 0x274]
mov dword [esp + 0x278], eax
lea eax, [esp + 0x14]
inc dword [esp + 0x274]
push eax
push 0
push 0
push ecx
call fcn.00483d40
inc eax
push eax
call fcn.00482720
add esp, 0x14
cmp eax, 0xffffffff
je 0x484a5a
test eax, eax
je 0x484a9d
cmp ebx, 2
jne 0x48498e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xe
push eax
jmp 0x48499f
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x3e
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], 0x10
push eax
lea edx, [esp + 0x37c]
push ecx
push 0
push 0x1a0
push edx
call fcn.00483d40
push eax
call fcn.004827e0
add esp, 0x18
cmp eax, 0xffffffff
je 0x484aa2
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x37c], eax
jne 0x484aa2
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x384], eax
jne 0x484aa2
cmp ebx, 2
jne 0x4849f9
lea eax, [esp + 0x20]
push eax
call fcn.0047cc90
jmp 0x484a03
mov eax, dword [esp + 0x34]
push eax
call fcn.004826c0
mov ecx, dword [esp + 0x538]
mov edx, dword [esp + 0x534]
mov edi, dword [esp + 0x530]
add esp, 4
push ecx
push edx
mov ecx, dword [esp + 0x530]
push edi
push ecx
push eax
lea eax, [esp + 0x39c]
push eax
call fcn.00484320
add esp, 0x18
cmp dword [esp + 0x528], 4
jne 0x484a4f
mov ecx, dword [esp + 0x534]
cmp word [ecx + 0x20], 0
ja 0x484a9d
cmp eax, 0x40
je 0x484acd
test eax, eax
jne 0x484aa2
jmp 0x484a9d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x484aa2
push 0
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x52c]
mov eax, 0
cmp dword [ecx], 0
jg 0x484ae8
pop ebp
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x508
ret
mov esi, 1
test esi, esi
je 0x4848ea
push 0
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret
mov eax, 0x4c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x508
ret