Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1a20
call fcn.00440910
push esi
mov esi, dword [esp + 0x1a28]
cmp esi, 3
je 0x40103a
cmp esi, 2
je 0x40103a
mov eax, dword [esp + 0x1a2c]
mov ecx, dword [eax]
push ecx
push str.Usage:__s__destination____message___n
call fcn.004408d1
add esp, 8
push 1
call fcn.004407fc
call fcn.00401c60
push eax
call fcn.004096d0
push eax
call fcn.00401870
add esp, 8
push str..comms
call fcn.00402160
push eax
lea edx, [esp + 0x828]
push 0x4560d0
push edx
call fcn.0044077d
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea eax, [esp + 0x20]
push str.gateway_d
push eax
call fcn.0044077d
add esp, 0x1c
cmp eax, 7
jg 0x4010a5
mov ecx, dword [str.gateway.c]
push 0x34
push ecx
push str.status___7
call fcn.0040c9a0
push 0xffffffffffffffff
call fcn.00401870
add esp, 0x10
push 2
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x828]
push str.gateway
push eax
call fcn.00412150
push eax
call fcn.00401870
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x4560f8
call fcn.004137e0
push eax
call fcn.00401870
push 0x401960
push 0x456104
push 0x456110
call fcn.00416220
push eax
call fcn.00401870
add esp, 0x38
cmp esi, 3
jne 0x40112e
mov eax, dword [esp + 0x1a2c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
mov eax, dword [esp + 0xc]
push eax
call fcn.00401350
push eax
call fcn.00401870
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x1a20
ret
cmp esi, 2
mov esi, dword [esp + 0x1a2c]
jne 0x4011a3
mov ecx, dword [esi + 4]
push 3
push 0x45611c
push ecx
call fcn.00405df0
add esp, 0xc
test eax, eax
jne 0x40115c
mov edx, dword [esi + 4]
push edx
push 0x4683fc
jmp 0x401111
mov ecx, dword [esi + 4]
push 3
push 0x456120
push ecx
call fcn.00405df0
add esp, 0xc
test eax, eax
jne 0x40117e
mov edx, dword [esi + 4]
push edx
push 0x468400
jmp 0x401111
mov ecx, dword [esi + 4]
push 3
push 0x456124
push ecx
call fcn.00405df0
add esp, 0xc
test eax, eax
jne 0x4011a3
mov edx, dword [esi + 4]
push edx
push 0x468404
jmp 0x401111
push edi
mov byte [esp + 0xa28], 0
push 0x4664d0
lea ecx, [esp + 0x28]
push 0x7ff
push ecx
call fcn.0044066d
add esp, 0xc
test eax, eax
je 0x40127e
lea edx, [esp + 0x24]
push edx
call fcn.00405120
lea eax, [esp + 0x28]
add esp, 4
test eax, eax
je 0x4011f0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4011f2
xor ecx, ecx
lea eax, [esp + ecx + 0x23]
cmp byte [eax], 0x5c
jne 0x4012a0
lea ecx, [esp + 0xa28]
test ecx, ecx
mov byte [eax], 0
je 0x401222
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0xa28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
jmp 0x401224
xor edx, edx
lea eax, [esp + 0x24]
test eax, eax
je 0x40123c
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x40123e
xor ecx, ecx
mov eax, 0xfff
sub eax, edx
cmp ecx, eax
jle 0x40125f
mov ecx, dword [str.gateway.c]
push 0x66
push ecx
push 0x456128
call fcn.0040c9a0
add esp, 0xc
push 0xfff
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa30]
push eax
call fcn.004057e0
add esp, 0xc
jmp 0x4011ac
mov al, byte [0x4683f8]
test al, al
je 0x401294
test byte [0x4664dc], 0x10
jne 0x401345
push 1
call fcn.00410420
add esp, 4
jmp 0x401317
lea ecx, [esp + 0xa28]
test ecx, ecx
je 0x4012c0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0xa28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
jmp 0x4012c2
xor edx, edx
lea eax, [esp + 0x24]
test eax, eax
je 0x4012da
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4012dc
xor ecx, ecx
mov eax, 0xfff
sub eax, edx
cmp ecx, eax
jle 0x4012fd
mov ecx, dword [str.gateway.c]
push 0x68
push ecx
push str._int_STRLEN_line_____int____int_sizeof_buf__1________len_
call fcn.0040c9a0
add esp, 0xc
push 0xfff
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa30]
push eax
call fcn.004057e0
add esp, 0xc
mov edx, dword [esi + 4]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xa28]
push ecx
push edx
push eax
call fcn.00401350
push eax
call fcn.00401870
push 0x4664f0
call fcn.00440560
add esp, 0x14
jmp 0x4011a4
push 0
call fcn.004407fc
pop edi
nop
nop
nop