Function at 0x413edb
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
jmp 0x413efd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
push 0x4bb3e2
push dword [0x4c277f]
call fcn.00402cf8
add esp, 8
cmp eax, 0
je 0x413fa6
mov eax, dword [0x4c277f]
test eax, eax
je 0x413fa1
push eax
mov ebx, eax
call fcn.004017f2
inc eax
push eax
call fcn.004a95c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4141dc
call fcn.0040bc22
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x413fc1
mov eax, 0x4bb3e2
push eax
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x413fe7
push ebx
call fcn.004a95c7
add esp, 4
call fcn.0040b99f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
xor eax, eax
call dword [0x4c2aa7]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x414018
push 0x13f
push 0x4026cc1
push 6
call fcn.004a95cd
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x1c], eax
call fcn.0040bcf4
mov dword [ebp - 0x20], eax
call fcn.004141f2
mov dword [ebp - 0x24], eax
call fcn.0040c010
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, 6
call fcn.0040185d
add esp, 0x18
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x414099
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4140a9
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4140b9
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4140c9
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4140d9
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4140e9
push ebx
call fcn.004a95c7
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4140fc
mov eax, 0x4bb3e2
push eax
push 1
mov ebx, 0x198
call fcn.004ab2a0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x414122
push ebx
call fcn.004a95c7
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.0040adb8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x41413e
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414152
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x414172
push eax
mov ebx, eax
call fcn.004017f2
inc eax
push eax
call fcn.004a95c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x4c277f]
test ebx, ebx
je 0x414186
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [0x4c277f], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4141a8
push eax
mov ebx, eax
call fcn.004017f2
inc eax
push eax
call fcn.004a95c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4141dc
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4141ed
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret