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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51202e
push eax
mov al, byte [0x55ef48]
mov dword fs:[0], esp
sub esp, 0x18
test al, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x46a1de
mov bl, al
push 0x556bcc
or bl, 1
mov ecx, 0x55ef44
mov byte [0x55ef48], bl
call fcn.004dd4bb
push 0x46ab20
call fcn.004c25c5
add esp, 4
mov al, byte [0x55ef48]
test al, 2
jne 0x46a20e
mov bl, al
push str.cdup
or bl, 2
mov ecx, 0x55ef40
mov byte [0x55ef48], bl
call fcn.004dd4bb
push 0x46ab10
call fcn.004c25c5
add esp, 4
mov al, byte [0x55ef48]
test al, 4
jne 0x46a23e
mov bl, al
push str.quit
or bl, 4
mov ecx, 0x55ef3c
mov byte [0x55ef48], bl
call fcn.004dd4bb
push 0x46ab00
call fcn.004c25c5
add esp, 4
mov ecx, dword [0x5580c0]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x34], eax
call fcn.004dd4bb
push 0x5526b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.004d4224
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.004dd1c2
push 0x5526b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.004dd829
mov eax, dword [esp + 0x10]
mov ebx, dword [str.user]
mov edi, ebx
or ecx, 0xffffffff
mov edx, dword [eax - 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x46a3e7
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call fcn.004c3330
add esp, 0xc
test eax, eax
jne 0x46a3e7
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004dda96
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x553c88
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004c4490
push 0x553c88
push 0
call fcn.004c4490
push 0x553c88
push 0
call fcn.004c4490
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
je 0x46a3de
push eax
lea eax, [esp + 0x1c]
push str.PASS__s_r_n
push eax
mov dword [esp + 0x30], 1
call fcn.004d41c8
mov edx, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebx
sub esi, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
not ecx
dec ecx
mov byte [esi + ecx - 1], 0xd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebx
sub esi, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
not ecx
dec ecx
mov byte [esi + ecx], 0xa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebx
sub esi, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esi + ecx + 1], al
lea ecx, [esp + 0x14]
call fcn.004dd5d6
push ebx
call fcn.004ddabf
add esp, 4
mov ecx, dword [str.type_i]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a40a
cmp dword [ebp + 0x6a8], 1
jne 0x46a486
jmp case.0x46a993.2
mov eax, dword [str.type_a]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a42d
mov eax, dword [ebp + 0x6a8]
test eax, eax
jne 0x46a486
jmp case.0x46a993.2
mov edx, dword [str.rest_0]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a486
mov eax, dword [ebp + 0x6a4]
test eax, eax
je 0x46a486
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004dd44d
mov eax, 2
jmp 0x46a593
mov edx, dword [str.type]
or esi, 0xffffffff
mov edi, edx
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
call fcn.004c3330
add esp, 0xc
test eax, eax
jne 0x46a4b3
mov dword [ebp + 0x6a8], esi
mov edx, dword [str.rest]
mov ecx, esi
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push eax
push edx
call fcn.004c3330
add esp, 0xc
test eax, eax
jne 0x46a4dd
mov dword [ebp + 0x6a4], eax
lea ecx, [esp + 0x38]
push 0xac
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x38], 3
call fcn.00452980
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call fcn.004dd44d
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, ebp
call fcn.004528e0
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp + 0x458]
push eax
call sub.WSOCK32.dll_send
test eax, eax
jg 0x46a5a8
lea ecx, [esp + 0x40]
push 0xd1
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x38], 4
call fcn.00452980
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
call fcn.004dd44d
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], esi
call fcn.004dd44d
mov eax, esi
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x10
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.0046ab30
mov ebx, dword [esp + 0x3c]
mov edi, eax
test ebx, ebx
je 0x46a5d1
test edi, edi
jle 0x46a5d1
mov eax, dword [esp + 0x1c]
mov ecx, ebx
add eax, 4
push eax
call fcn.004dd586
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x46a5ea
test edi, edi
jle 0x46a620
mov edx, dword [esp + 0x1c]
add edx, 8
push edx
call fcn.004dd586
test edi, edi
jle 0x46a620
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x38], esi
je 0x46a61d
lea ecx, [esi + 8]
mov byte [esp + 0x30], 5
call fcn.004dd44d
lea ecx, [esi + 4]
mov byte [esp + 0x30], 2
call fcn.004dd44d
push esi
call fcn.004ddabf
add esp, 4
or esi, 0xffffffff
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46a62a
mov dword [eax], edi
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x4a8], edi
mov eax, dword [str.type_i]
push eax
push ecx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a670
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x46a72c
mov dword [ebp + 0x6a8], 1
jmp 0x46a72c
mov ecx, dword [str.type_a]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a6ae
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x46a72c
mov dword [ebp + 0x6a8], 0
jmp 0x46a72c
mov ecx, dword [str.rest_0]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a6e8
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 3
jne 0x46a72c
mov dword [ebp + 0x6a4], 1
jmp 0x46a72c
mov ecx, dword [0x55ef3c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004c2606
add esp, 8
test eax, eax
jne 0x46a72c
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x46a72c
mov ecx, dword [ebp + 0x1c]
push 0
push 0x8004
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 1]
cmp edx, 4
ja case.default.0x46a748
jmp dword [edx*4 + 0x46aad4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], esi
jmp 0x46a9be
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], esi
jmp 0x46a473
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46aa7f
lea ecx, [esp + 0x38]
push 0xac
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x38], 6
call fcn.00452980
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call fcn.004dd44d
push 1
push str.PASS_
mov ecx, ebp
call fcn.004528e0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004dd586
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp + 0x458]
push eax
call sub.WSOCK32.dll_send
test eax, eax
jg 0x46a83e
lea ecx, [esp + 0x40]
push 0xd1
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x38], 7
call fcn.00452980
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
jmp 0x46a563
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.0046ab30
test ebx, ebx
mov esi, eax
je 0x46a86d
test esi, esi
jle 0x46a8a2
mov ecx, dword [esp + 0x44]
push ebx
call fcn.004dd586
mov eax, dword [esp + 0x1c]
mov ecx, ebx
add eax, 4
push eax
call fcn.004dd586
test esi, esi
jle 0x46a8a2
mov eax, dword [esp + 0x1c]
mov edi, eax
test eax, eax
mov dword [esp + 0x38], edi
je 0x46a8a2
lea ecx, [eax + 8]
mov byte [esp + 0x30], 8
call fcn.004dd44d
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call fcn.004dd44d
push edi
call fcn.004ddabf
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46a8ac
mov dword [eax], esi
mov ecx, ebp
call fcn.004711b0
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
cmp esi, 2
jne 0x46a98b
mov eax, dword [0x5580c0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
push ecx
mov byte [esp + 0x34], 0xa
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x55cde0
call fcn.004dd4bb
mov ecx, ebp
call fcn.00476160
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x55cde0
call fcn.004dd4bb
mov ecx, ebp
call fcn.004761b0
push 0
lea edx, [esp + 0x48]
push 0
push edx
push str.PWD_r_n
mov ecx, ebp
call fcn.0046a190
cmp eax, esi
jne 0x46a9d1
lea eax, [esp + 0x38]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00470d80
add esp, 4
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004dd1c2
mov ecx, ebp
call fcn.00476160
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.004dd1c2
mov ecx, ebp
call fcn.004761b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 9
call fcn.004dd44d
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.004dd44d
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x46a993
jmp dword [eax*4 + 0x46aae8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004dd44d
mov eax, 1
jmp 0x46a593
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 9
call fcn.004dd44d
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.004dd44d
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004dd44d
or eax, 0xffffffff
jmp 0x46a593
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], 0xffffffff
jmp 0x46aa9f
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004dd44d
mov eax, 5
jmp 0x46a593
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x18]
call fcn.004dd44d
mov eax, 3
jmp 0x46a593
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004dd44d
mov dword [esp + 0x30], esi
jmp 0x46aa6c