Function at 0x416ed1
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
jmp 0x416ef3
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
cmp dword [0x4bad38], 0
je 0x416f6e
push 0x479858
push dword [0x4bad3c]
call fcn.0040457c
add esp, 8
cmp eax, 0
je 0x416f6e
mov eax, dword [0x4bad3c]
test eax, eax
je 0x416f69
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x417176
call fcn.00412bf1
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x416f89
mov eax, 0x479858
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x416faf
push ebx
call fcn.00446bb5
add esp, 4
call fcn.0041296e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
xor eax, eax
call dword [0x4baff0]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416fe0
push 0x16e
push 0x402691e
push 6
call fcn.00446bbb
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x1c], eax
call fcn.00412cc3
mov dword [ebp - 0x20], eax
call fcn.0041718c
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, 5
call fcn.00401c19
add esp, 0x14
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41703c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41704c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41705c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41706c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41707c
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x41708f
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4170b5
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.0040af4f
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4170d1
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4170e5
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [0x4bad38], 0
je 0x41712c
mov eax, dword [ebp - 4]
test eax, eax
je 0x417112
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x4bad3c]
test ebx, ebx
je 0x417126
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [0x4bad3c], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417148
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x417176
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x417187
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret