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

Disassembly:
push 0xffffffffffffffff
push 0x512056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [0x5580a0]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0xc4], ebp
mov eax, dword [esi + 0x4b0]
mov ebx, 1
cmp eax, ebp
mov byte [esp + 0xc4], bl
mov dword [esi + 0x6a4], ebp
mov dword [esi + 0x6a8], ebp
je 0x46b80c
mov edi, dword [eax + 8]
call fcn.004dd995
cmp eax, ebp
je 0x46b7ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x46b7f0
xor eax, eax
mov ecx, dword [0x55e868]
push edi
push ecx
push ebp
push ebp
lea ecx, [eax + 0x758]
call fcn.004e6adb
mov ecx, eax
call fcn.0047fd20
mov edx, dword [esi + 0x4b0]
mov eax, dword [edx + 0x44]
cmp eax, 2
jne 0x46b828
call fcn.004f7db8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x830]
cmp eax, ebp
je 0x46ba2b
call fcn.004f7db8
mov eax, dword [eax + 4]
cmp dword [eax + 0x834], ebp
je 0x46ba2b
cmp dword [0x55e12c], ebp
je 0x46b85b
mov ecx, esi
call fcn.004510a0
test eax, eax
jne 0x46ba2b
mov ecx, esi
call fcn.0046ab00
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x46b89c
lea eax, [esp + 0x28]
push 0xc7
push eax
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 2
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x28]
jmp 0x46b90d
call fcn.004f7db8
mov eax, dword [eax + 4]
cmp dword [eax + 0x834], ebx
je 0x46b8ce
call fcn.004f7db8
mov eax, dword [eax + 4]
cmp dword [eax + 0x834], 3
je 0x46b8ce
call fcn.004f7db8
mov eax, dword [eax + 4]
cmp dword [eax + 0x834], 4
jne 0x46b942
mov ecx, esi
call fcn.0046af80
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x46b942
lea ecx, [esp + 0x28]
push 0xcc
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 3
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x28]
call fcn.004dd111
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004dd111
mov eax, esi
jmp 0x46c4c8
call fcn.004f7db8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x834]
dec eax
cmp eax, 5
ja case.default.0x46b956
jmp dword [eax*4 + 0x46c4e4]
mov edx, dword [esi + 0x4b0]
lea eax, [esp + 0x28]
add edx, 8
push edx
push 0x556c0c
push eax
call fcn.004dd41a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 4
call fcn.004dd24a
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x28]
jmp 0x46b9cb
mov ecx, dword [esi + 0x4b0]
lea edx, [esp + 0x14]
add ecx, 8
push ecx
push str.open
push edx
call fcn.004dd41a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 5
call fcn.004dd24a
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x14]
call fcn.004dd111
push 0x5526b0
lea ecx, [esp + 0x14]
call fcn.004dd4ed
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x458]
push eax
call sub.WSOCK32.dll_send
lea ecx, [esp + 0x14]
push 0x11b
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 6
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x14]
jmp 0x46bca9
lea edx, [esp + 0x14]
push 0xe936
push edx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0xc8], 7
call fcn.00467d00
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea eax, [esp + 0x14]
push 0x10a
push eax
call fcn.0042e080
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 8
call fcn.004dd24a
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], bl
call fcn.004dd111
mov ecx, dword [esi + 0x4b0]
add ecx, 8
push ecx
lea ecx, [esp + 0x14]
call fcn.004dd529
mov edx, dword [esp + 0x10]
push ebp
push edx
mov ecx, esi
call fcn.00452660
mov eax, dword [esi + 0x4b0]
lea ecx, [esp + 0x4c]
push ecx
mov eax, dword [eax + 8]
push eax
call fcn.0046aac0
add esp, 8
test eax, eax
jne 0x46bb1d
lea edx, [esp + 0x14]
push 0xd5
push edx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 9
call fcn.00452660
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
or ebp, 0xffffffff
jmp 0x46be3b
mov eax, dword [esi + 0x4b0]
mov word [esp + 0x48], 2
mov cx, word [eax + 0x24]
push ecx
call sub.WSOCK32.dll_htons
push str.__ip_
lea ecx, [esp + 0x14]
mov word [esp + 0x4e], ax
call fcn.004dd4ed
mov edx, dword [esp + 0x4c]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x14]
call fcn.004dd4ed
push 0x29
lea ecx, [esp + 0x14]
call fcn.004dd514
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, esi
call fcn.00452660
cmp dword [0x55e12c], ebp
je 0x46bb87
mov ecx, esi
call fcn.004510a0
mov dword [0x55e128], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x458]
lea edx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.004aefd0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x46bc63
cmp eax, 0xfffffffe
je 0x46bbff
lea ecx, [esp + 0x14]
push 0xc6
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xb
call fcn.00452660
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
or ebp, 0xffffffff
jmp 0x46be3b
lea edx, [esp + 0x28]
push 0xdb
push edx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xa
call fcn.00452660
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004dd111
mov eax, 0xfffffffe
jmp 0x46c4c8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x458]
push ebx
push 0x501
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
lea edx, [esp + 0x14]
push 0x11b
push edx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xc
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x14]
call fcn.004dd111
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0046a840
or ebp, 0xffffffff
cmp eax, 0x78
mov dword [esp + 0x18], eax
jg 0x46bd7c
cmp eax, 0x78
jne 0x46be52
lea ecx, [esp + 0x14]
push 0x11a
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0x10
call fcn.00452660
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], bl
call fcn.004dd111
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x550]
add edx, 8
mov ecx, edi
push edx
call fcn.004dd529
mov eax, dword [esp + 0x1c]
mov ecx, edi
add eax, 4
push eax
call fcn.004dd529
mov eax, dword [esp + 0x1c]
mov edi, eax
test eax, eax
mov dword [esp + 0x2c], edi
je 0x46bd63
lea ecx, [eax + 8]
mov byte [esp + 0xc4], 0x11
call fcn.004dd111
lea ecx, [edi + 4]
mov byte [esp + 0xc4], bl
call fcn.004dd111
push edi
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0046a840
cmp eax, 0x78
mov dword [esp + 0x18], eax
jle 0x46bccd
cmp eax, 0xdc
je 0x46c00e
cmp eax, 0x1a5
je 0x46bf65
lea edx, [esp + 0x44]
push 0xdf
push edx
call fcn.0042e080
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push ecx
push eax
push edx
call fcn.004c286d
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.004dd111
lea eax, [esp + 0x58]
push 0
push eax
mov ecx, esi
call fcn.00452660
mov ecx, dword [esp + 0x1c]
add esi, 0x550
add ecx, 8
push ecx
mov ecx, esi
call fcn.004dd529
mov edx, dword [esp + 0x1c]
mov ecx, esi
add edx, 4
push edx
call fcn.004dd529
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
mov dword [esp + 0x2c], esi
je 0x46be2a
lea ecx, [eax + 8]
mov byte [esp + 0xc4], 0x16
call fcn.004dd111
lea ecx, [esi + 4]
mov byte [esp + 0xc4], bl
call fcn.004dd111
push esi
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], ebp
call fcn.004dd111
mov eax, ebp
jmp 0x46c4c8
cmp eax, 0xfffffffe
je 0x46bf00
cmp eax, ebp
je 0x46bec5
test eax, eax
jne 0x46bd92
lea edx, [esp + 0x28]
push 0xde
push edx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xd
call fcn.00452660
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], ebp
call fcn.004dd111
xor eax, eax
jmp 0x46c4c8
lea eax, [esp + 0x3c]
push 0xe1
push eax
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xf
call fcn.00452660
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], bl
call fcn.004dd111
jmp 0x46be2a
lea ecx, [esp + 0x40]
push 0xda
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0xe
call fcn.00452660
lea ecx, [esp + 0x40]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004dd111
mov eax, 0xfffffffe
jmp 0x46c4c8
lea eax, [esp + 0x38]
push 0xdd
push eax
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0x14
call fcn.00452660
lea ecx, [esp + 0x38]
mov byte [esp + 0xc4], bl
call fcn.004dd111
mov ecx, dword [esp + 0x1c]
add esi, 0x550
add ecx, 8
push ecx
mov ecx, esi
call fcn.004dd529
mov edx, dword [esp + 0x1c]
mov ecx, esi
add edx, 4
push edx
call fcn.004dd529
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
mov dword [esp + 0x2c], esi
je 0x46bff5
lea ecx, [eax + 8]
mov byte [esp + 0xc4], 0x15
call fcn.004dd111
lea ecx, [esi + 4]
mov byte [esp + 0xc4], bl
call fcn.004dd111
push esi
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
or ebp, 0xffffffff
jmp 0x46be3b
lea eax, [esp + 0x24]
push 0x109
push eax
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0x12
call fcn.00452660
lea ecx, [esp + 0x24]
mov byte [esp + 0xc4], bl
call fcn.004dd111
mov ecx, dword [esp + 0x1c]
lea edi, [esi + 0x550]
add ecx, 8
push ecx
mov ecx, edi
call fcn.004dd529
mov edx, dword [esp + 0x1c]
mov ecx, edi
add edx, 4
push edx
call fcn.004dd529
mov eax, dword [esp + 0x1c]
mov edi, eax
test eax, eax
mov dword [esp + 0x2c], edi
je 0x46c09e
lea ecx, [eax + 8]
mov byte [esp + 0xc4], 0x13
call fcn.004dd111
lea ecx, [edi + 4]
mov byte [esp + 0xc4], bl
call fcn.004dd111
push edi
call fcn.004dd783
add esp, 4
lea eax, [esp + 0x24]
push 0xb1
push eax
call fcn.0042e080
add esp, 8
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax]
push eax
mov byte [esp + 0xc8], 0x17
mov edx, dword [ecx]
call dword [edx + 0x50]
lea ecx, [esp + 0x24]
mov byte [esp + 0xc4], bl
call fcn.004dd111
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x704]
test ecx, ecx
je case.0x46b956.2
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne case.0x46b956.2
mov ecx, dword [0x5580a0]
mov dword [esp + 0x38], ecx
mov byte [esp + 0xc4], 0x18
call fcn.004f7db8
call fcn.004f7db8
mov eax, dword [eax + 0xc]
push 2
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [esp + 0x24]
push 0xb1
push edx
mov edi, eax
call fcn.0042e080
add esp, 8
mov ebp, dword [eax]
mov byte [esp + 0xc4], 0x19
call fcn.004dd995
test eax, eax
je 0x46c153
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x46c155
xor eax, eax
push ebp
push edi
lea ecx, [eax + 0x8e4]
call fcn.004b0040
lea ecx, [esp + 0x24]
mov byte [esp + 0xc4], 0x18
call fcn.004dd111
lea ecx, [esp + 0x38]
mov byte [esp + 0xc4], bl
call fcn.004dd111
mov ecx, esi
call fcn.0046c510
mov edi, eax
cmp edi, ebx
je 0x46c1b1
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
mov dword [esp + 0xc4], 0xffffffff
jmp 0x46c4bd
xor ebp, ebp
mov ecx, esi
push ebp
push ebp
push ebp
push str.TYPE_I_r_n
call fcn.00469ea0
mov eax, dword [esi + 0x4b0]
mov eax, dword [eax + 0x84]
dec eax
cmp eax, 3
ja case.default.0x46c1d8
jmp dword [eax*4 + 0x46c4fc]
lea ecx, [esp + 0x18]
push ebp
push ecx
push ebp
push str.REST_100_r_n
mov ecx, esi
call fcn.00469ea0
cmp dword [esp + 0x18], 0x15e
jne 0x46c216
push ebp
push ebp
push ebp
push str.REST_0_r_n
mov ecx, esi
mov dword [esi + 0x4ac], ebx
call fcn.00469ea0
jmp 0x46c36e
push ebp
push ebp
push ebp
push str.REST_0_r_n
mov ecx, esi
mov dword [esi + 0x4ac], ebp
call fcn.00469ea0
jmp 0x46c36e
lea edx, [esp + 0x18]
push ebp
push edx
push ebp
push str.REST_100_r_n
mov ecx, esi
call fcn.00469ea0
cmp dword [esp + 0x18], 0x15e
jne 0x46c265
mov eax, dword [esi + 0x4b0]
mov dword [esi + 0x4ac], ebx
mov dword [eax + 0x84], 3
jmp 0x46c27b
mov ecx, dword [esi + 0x4b0]
mov dword [esi + 0x4ac], ebp
mov dword [ecx + 0x84], 4
push ebp
push ebp
push ebp
push str.REST_0_r_n
mov ecx, esi
call fcn.00469ea0
push ebx
mov ecx, 0x55f6e0
call fcn.004b39b0
test eax, eax
jne 0x46c36e
mov edx, dword [esi + 0x54c]
mov ecx, 0x55f6e0
push edx
call fcn.004b1e90
cmp eax, ebp
je 0x46c36e
mov ecx, dword [esi + 0x4b0]
mov edx, dword [ecx + 0x84]
mov ecx, 0x55f6e0
mov dword [eax + 0x120], edx
call fcn.004b13e0
jmp 0x46c36e
call fcn.004f7db8
mov eax, dword [eax + 4]
cmp dword [eax + 0xfc], ebp
je 0x46c2f2
lea eax, [esp + 0x18]
push ebp
push eax
jmp 0x46c1e5
mov ecx, dword [esi + 0x4b0]
mov eax, dword [ecx + 0x84]
cmp eax, 5
jne 0x46c356
lea edx, [esp + 0x18]
push ebp
push edx
push ebp
push str.REST_100_r_n
mov ecx, esi
call fcn.00469ea0
cmp dword [esp + 0x18], 0x15e
jne 0x46c33b
mov eax, dword [esi + 0x4b0]
mov dword [esi + 0x4ac], ebx
mov dword [eax + 0x84], 6
jmp 0x46c27b
mov ecx, dword [esi + 0x4b0]
mov dword [esi + 0x4ac], ebp
mov dword [ecx + 0x84], 7
jmp 0x46c27b
cmp eax, 6
jne 0x46c363
mov dword [esi + 0x4ac], ebx
jmp 0x46c36e
cmp eax, 7
jne 0x46c36e
mov dword [esi + 0x4ac], ebp
cmp dword [esi + 0x4ac], ebp
je 0x46c3a8
lea eax, [esp + 0x24]
push 0x11f
push eax
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0x1a
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x24]
jmp 0x46c3d8
lea ecx, [esp + 0x2c]
push 0x11e
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0xcc], 0x1b
call fcn.00452660
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x2c]
call fcn.004dd111
mov eax, dword [0x5580a0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
push ecx
mov byte [esp + 0xc8], 0x1d
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x55cdc0
call fcn.004dd17f
mov ecx, esi
call fcn.00475ee0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x55cdc0
call fcn.004dd17f
mov ecx, esi
call fcn.00475f30
push 0
lea edx, [esp + 0x38]
push 0
push edx
push str.PWD_r_n
mov ecx, esi
call fcn.00469ea0
or ebp, 0xffffffff
cmp eax, 2
jne 0x46c482
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00470ad0
add esp, 4
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004dce86
mov ecx, esi
call fcn.00475ee0
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004dce86
mov ecx, esi
call fcn.00475f30
jmp 0x46c484
mov edi, ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4], 0x1c
call fcn.004dd111
lea ecx, [esp + 0x34]
mov byte [esp + 0xc4], bl
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call fcn.004dd111
mov dword [esp + 0xc4], ebp
lea ecx, [esp + 0x10]
call fcn.004dd111
mov eax, edi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret