Function at 0x46f130
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x512978
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
mov ebp, dword [esp + 0xd0]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x46faad
call fcn.0046e750
test eax, eax
jne 0x46faad
mov dword [esi + 0x59c], edi
mov edi, dword [esp + 0xdc]
or ebx, 0xffffffff
test edi, edi
je 0x46f237
mov eax, dword [0x55e154]
cmp edi, eax
jle 0x46f194
sub edi, eax
jmp 0x46f196
xor edi, edi
push edi
lea eax, [esp + 0x64]
push str.REST__u_r_n
push eax
call fcn.004c2b9d
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
push 0
push ecx
push 0
push edx
mov ecx, esi
call fcn.0046a190
cmp dword [esp + 0x18], 0x15e
je 0x46f4b0
lea eax, [esp + 0x10]
push 0xd6
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 1
call fcn.00452980
lea ecx, [esp + 0x10]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov eax, dword [edx + ebp + 4]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
jne 0x46f218
mov eax, ebx
push 0
push eax
call fcn.004c52fc
add esp, 8
lea ecx, [ebp + 0xc]
push 0
call fcn.004d2bf2
mov dword [esi + 0x59c], 0
push 1
mov ecx, esi
call fcn.0044f860
mov eax, dword [esi + 0x4b0]
mov eax, dword [eax + 0x64]
cmp eax, 2
jne 0x46f25c
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
test eax, eax
je 0x46f2bd
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x710]
test ecx, ecx
je 0x46f2bd
mov ecx, esi
call fcn.0046ea20
test eax, eax
je 0x46f2bd
mov ecx, esi
call fcn.0046e9f0
lea ecx, [esp + 0x10]
push 0xd9
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 2
call fcn.00452980
lea ecx, [esp + 0x10]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
lea edx, [esp + 0x10]
push 0xac
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 1
push eax
mov ecx, esi
mov dword [esp + 0xd4], 3
call fcn.00452980
lea ecx, [esp + 0x10]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov ebp, dword [esp + 0xd4]
push 1
push ebp
mov ecx, esi
call fcn.004528e0
mov edi, ebp
mov ecx, ebx
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x458]
not ecx
dec ecx
push ecx
push ebp
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [esi + 0x4b0]
mov eax, dword [ecx + 0x64]
cmp eax, 2
jne 0x46f33e
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
test eax, eax
je 0x46f39f
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x710]
test ecx, ecx
jne 0x46f39f
mov ecx, esi
call fcn.0046ea20
test eax, eax
je 0x46f39f
mov ecx, esi
call fcn.0046e9f0
lea edx, [esp + 0x10]
push 0xd9
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 4
call fcn.00452980
lea ecx, [esp + 0x10]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0046ab30
cmp eax, 0x1aa
jg 0x46f8c6
cmp eax, 0x1a9
jge case.0x46f8dc.451
add eax, 2
cmp eax, 0x98
ja case.0x46f8dc.455
xor ecx, ecx
mov cl, byte [eax + 0x46fb1c]
jmp dword [ecx*4 + 0x46fb08]
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov eax, dword [edx + 4]
push eax
call fcn.00469ed0
test eax, eax
mov dword [esi + 0x598], eax
jne 0x46f404
mov eax, dword [esp + 0xe0]
mov dword [esi + 0x598], eax
mov eax, dword [esp + 0x1c]
mov edi, eax
test eax, eax
mov dword [esp + 0x20], edi
je 0x46f43d
lea ecx, [eax + 8]
mov dword [esp + 0xcc], 5
call fcn.004dd44d
lea ecx, [edi + 4]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
push edi
call fcn.004ddabf
add esp, 4
mov ecx, dword [esi + 0x4b0]
mov eax, dword [ecx + 0x64]
cmp eax, 2
jne 0x46f459
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
test eax, eax
jne 0x46f4fe
mov ecx, esi
call fcn.0046ea20
test eax, eax
je 0x46f4fe
mov ecx, esi
call fcn.0046e9f0
lea edx, [esp + 0x10]
push 0xd9
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x10
call fcn.00452980
mov dword [esp + 0xcc], ebx
lea ecx, [esp + 0x10]
jmp 0x46fae0
lea eax, [esp + 0x10]
push 0x123
push eax
call fcn.0042e2e0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x60]
push edi
push eax
push ecx
call fcn.004c2b9d
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004dd44d
lea edx, [esp + 0x60]
push 0
push edx
mov ecx, esi
call fcn.00452980
push edi
lea ecx, [ebp + 0xc]
call fcn.004d2bf2
mov dword [esi + 0x59c], edi
jmp 0x46f240
push 4
push str.RETR
push ebp
xor edi, edi
call fcn.004c3d20
add esp, 0xc
test eax, eax
jne 0x46f519
mov edi, 1
mov eax, dword [esi + 0x598]
mov ecx, dword [esi + 0x6a0]
add ecx, eax
push edi
mov dword [esi + 0x6a0], ecx
mov ecx, dword [esp + 0xdc]
push ecx
mov ecx, esi
call fcn.0046eb60
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0046e9f0
cmp dword [esp + 0x18], ebx
je 0x46fae5
push 0
mov ecx, esi
call fcn.0046ab30
cmp eax, 0xfa
jg 0x46f59a
cmp eax, 0xfa
je case.0x46f583.2
add eax, 2
cmp eax, 0xe4
ja case.0x46f5b2.430
xor edx, edx
mov dl, byte [eax + 0x46fbd0]
jmp dword [edx*4 + 0x46fbb8]
push 0
mov ecx, esi
call fcn.0046ab30
cmp eax, 0xfa
jle 0x46f567
add eax, 0xfffffe57
cmp eax, 0x80
ja case.0x46f5b2.430
xor ecx, ecx
mov cl, byte [eax + 0x46fcd0]
jmp dword [ecx*4 + 0x46fcb8]
lea edx, [esp + 0x2c]
push 0x1fa
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x14
call fcn.00452980
lea ecx, [esp + 0x2c]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 1
jmp 0x46faea
lea eax, [esp + 0x3c]
push 0xde
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x11
call fcn.00452980
lea ecx, [esp + 0x3c]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 5
jmp 0x46faea
lea ecx, [esp + 0x5c]
push 0xda
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x12
call fcn.00452980
lea ecx, [esp + 0x5c]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 6
jmp 0x46faea
lea edx, [esp + 0x58]
push 0xe1
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x13
call fcn.00452980
mov dword [esp + 0xcc], ebx
lea ecx, [esp + 0x58]
jmp 0x46fae0
xor eax, eax
jmp 0x46faea
lea eax, [esp + 0x54]
push 0x1fa
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x15
call fcn.00452980
lea ecx, [esp + 0x54]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 7
jmp 0x46faea
lea ecx, [esp + 0x34]
push 0x1ad
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x16
call fcn.00452980
lea ecx, [esp + 0x34]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 7
jmp 0x46faea
lea edx, [esp + 0x4c]
push 0x136
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x17
call fcn.00452980
lea ecx, [esp + 0x4c]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 1
jmp 0x46faea
lea eax, [esp + 0x24]
push 0x1fa
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x18
call fcn.00452980
lea ecx, [esp + 0x24]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 8
jmp 0x46faea
lea ecx, [esp + 0x20]
push 0xc5
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0x19
call fcn.00452980
mov dword [esp + 0xcc], ebx
lea ecx, [esp + 0x20]
jmp 0x46fae0
lea edx, [esp + 0x10]
push 0xde
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 6
call fcn.00452980
lea ecx, [esp + 0x10]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 5
jmp 0x46faea
lea eax, [esp + 0x44]
push 0xda
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 7
call fcn.00452980
lea ecx, [esp + 0x44]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 6
jmp 0x46faea
lea ecx, [esp + 0x28]
push 0xe1
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 8
call fcn.00452980
mov dword [esp + 0xcc], ebx
lea ecx, [esp + 0x28]
jmp 0x46fae0
add eax, 0xfffffe3e
cmp eax, 0x67
ja case.0x46f8dc.455
xor edx, edx
mov dl, byte [eax + 0x46fd6c]
jmp dword [edx*4 + 0x46fd54]
lea eax, [esp + 0x30]
push 0x1fa
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 9
call fcn.00452980
lea ecx, [esp + 0x30]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 1
jmp 0x46faea
lea ecx, [esp + 0x38]
push 0x1fa
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0xa
call fcn.00452980
lea ecx, [esp + 0x38]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 7
jmp 0x46faea
lea edx, [esp + 0x40]
push 0x1ad
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0xb
call fcn.00452980
lea ecx, [esp + 0x40]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 7
jmp 0x46faea
lea eax, [esp + 0x48]
push 0x136
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0xc
call fcn.00452980
lea ecx, [esp + 0x48]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 1
jmp 0x46faea
lea ecx, [esp + 0x50]
push 0x1fa
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0xd
call fcn.00452980
lea ecx, [esp + 0x50]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, 8
jmp 0x46faea
mov ecx, esi
call fcn.0046e9f0
lea edx, [esp + 0x14]
push 0xc8
push edx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0xe
call fcn.00452980
lea ecx, [esp + 0x14]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
mov dword [esp + 0x20], esi
je 0x46fae5
lea ecx, [eax + 8]
mov dword [esp + 0xcc], 0xf
call fcn.004dd44d
lea ecx, [esi + 4]
mov dword [esp + 0xcc], ebx
call fcn.004dd44d
push esi
call fcn.004ddabf
add esp, 4
jmp 0x46fae5
lea eax, [esp + 0x14]
push 0x10f
push eax
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push edi
push eax
mov ecx, esi
mov dword [esp + 0xd4], edi
call fcn.00452980
mov dword [esp + 0xcc], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004dd44d
mov eax, 4
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0x10