Function at 0x408430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x1f4
mov dword [ebp - 0x1c4], 0x40a7c4
mov dword [ebp - 0x1c0], 0x475b8d
lea eax, [ebp - 8]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b8], 0x4085f9
mov dword [ebp - 0x1b4], esp
lea eax, [ebp - 0x1dc]
mov dword [esp], eax
call fcn.0041cc28
mov edx, dword [ebp + 8]
mov dword [edx], 0x47d748
mov dword [edx + 0x24], 0xffffffff
lea eax, [ebp - 9]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x1d8], 2
call fcn.0045250c
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], eax
lea eax, [ebp - 0xa]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x1d8], 1
call fcn.0045250c
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x44], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov eax, edx
add eax, 0x34
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x5c], 0
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
add eax, 0x18
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [edx + 0x74], 0
mov dword [edx + 0x64], 0
mov dword [edx + 0x68], 0
add eax, 0x18
mov dword [edx + 0x6c], eax
mov dword [edx + 0x70], eax
lea edi, [ebp - 0x19c]
mov ecx, 0x190
xor eax, eax
rep stosb byte es:[edi], al
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov dword [ebp - 0x1d8], 3
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
test eax, eax
jne 0x4085a5
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x2000
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x1d8], 3
call fcn.00401adc
lea eax, [ebp - 0x1dc]
mov dword [esp], eax
call fcn.0041cbd4
mov edi, dword [ebp - 4]
leave
ret
mov dword [esp + 4], str.WSAStartup_failed.
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0x1e0], eax
mov dword [esp], 4
call fcn.00409e48
mov edx, dword [ebp - 0x1e0]
mov dword [eax], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x47c21c
mov dword [esp], eax
mov dword [ebp - 0x1d8], 3
call fcn.0040a240
add ebp, 8
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1e0], edx
cmp eax, 1
je 0x408690
cmp eax, 2
jne 0x408678
mov eax, dword [ebp + 8]
add eax, 0x60
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x30
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x2c
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0
call fcn.00454940
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0
call fcn.00454940
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [ebp - 0x1d8], 0
call fcn.0040199c
mov eax, dword [ebp - 0x1e0]
mov dword [esp], eax
mov dword [ebp - 0x1d8], 0xffffffff
call fcn.0041cec8
nop
nop
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x34], 0x40a7c4
mov dword [ebp - 0x30], 0x475b97
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x4088a1
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041cc28
mov edx, dword [ebp + 8]
mov dword [edx], 0x47d748
mov dword [esp], edx
mov dword [ebp - 0x48], 6
call fcn.004064a0
call sub.WS2_32.DLL_WSACleanup
test eax, eax
jne 0x40885d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov dword [esp + 4], eax
mov eax, edx
add eax, 0x60
mov dword [esp], eax
mov dword [ebp - 0x48], 5
call fcn.0046e338
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x50]
mov dword [esp + 4], eax
mov eax, ecx
add eax, 0x48
mov dword [esp], eax
mov dword [ebp - 0x48], 4
call fcn.0046e338
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
mov dword [esp + 4], eax
mov eax, edx
add eax, 0x30
mov dword [esp], eax
mov dword [ebp - 0x48], 3
call fcn.0046e338
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
lea edx, [eax - 0xc]
mov dword [ebp - 0x50], edx
mov ecx, dword [0x485130]
test ecx, ecx
jne 0x4087ec
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 8]
lea edx, [eax - 1]
mov dword [ecx + 8], edx
test eax, eax
jle 0x40880a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x50], ecx
mov edx, dword [0x485130]
test edx, edx
jne 0x408824
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
test eax, eax
jle 0x408846
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [ebp - 0x48], 0xffffffff
call fcn.0040199c
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00409b50
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041cbd4
leave
ret
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x48], 2
call fcn.0040ce64
test eax, eax
jg 0x408794
lea eax, [ebp - 9]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.004528f0
jmp 0x408794
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x48], 1
call fcn.0040ce64
test eax, eax
jg 0x4087c1
lea eax, [ebp - 0xa]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.004528f0
jmp 0x4087c1
mov dword [esp + 4], str.WSACleanup_failed.
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0x50], eax
mov dword [esp], 4
call fcn.00409e48
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x47c21c
mov dword [esp], eax
call fcn.0040a240
add ebp, 8
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edx
cmp eax, 1
je 0x408942
cmp eax, 2
je 0x40892d
cmp eax, 3
je 0x408918
cmp eax, 4
je 0x408903
cmp eax, 5
je 0x4088ee
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x48], 0
call fcn.0040199c
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call fcn.0041cec8
mov eax, dword [ebp + 8]
add eax, 0x60
mov dword [esp], eax
mov dword [ebp - 0x48], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [esp], eax
mov dword [ebp - 0x48], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x30
mov dword [esp], eax
mov dword [ebp - 0x48], 0
call fcn.0046cdd8
mov eax, dword [ebp + 8]
add eax, 0x2c
mov dword [esp], eax
mov dword [ebp - 0x48], 0
call fcn.00454940
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [esp], eax
mov dword [ebp - 0x48], 0
call fcn.00454940
jmp 0x4088ca