Function at 0x180005c5c
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov r8d, dword [0x180036a50]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x624b720f
call fcn.180018300
test rax, rax
je 0x180005cae
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800360b0]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x1800360b0], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xa4cc6db9
call fcn.180018300
test rax, rax
je 0x180005cf0
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180035efc]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180035efc], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x6bca5ccb
call fcn.180018300
test rax, rax
je 0x180005d32
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180036098]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180036098], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x424b15a5
call fcn.180018300
test rax, rax
je 0x180005d74
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003609c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18003609c], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xe63417d6
call fcn.180018300
test rax, rax
je 0x180005db6
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800360a0]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x1800360a0], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x1e843f58
call fcn.180018300
test rax, rax
je 0x180005df8
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800360a8]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x1800360a8], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x160717fa
call fcn.180018300
test rax, rax
je 0x180005e3a
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180035610]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180035610], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x260683ff
call fcn.180018300
test rax, rax
je 0x180005e7c
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003547c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18003547c], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x2b223755
call fcn.180018300
test rax, rax
je 0x180005ebe
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800360ac]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x1800360ac], ecx
cmp dword [0x180036958], 0x79007f4
jne 0x180006099
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x7008913
call fcn.180018300
test rax, rax
mov rdi, rax
je 0x180005f2b
lea r8, [rsp + 0x1e8]
lea rdx, [rsp + 0x1f8]
lea rcx, [0x180039209]
call fcn.180004dec
test eax, eax
je 0x180005f14
mov rcx, rdi
call fcn.1800031d8
jmp 0x180005f2b
mov r8, qword [rsp + 0x1f8]
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xdfabf472
call fcn.180018300
test rax, rax
je 0x180005f6d
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800360a4]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x1800360a4], ecx
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xecbd5741
call fcn.180018300
test rax, rax
mov rdi, rax
je 0x180005faf
lea rdx, [rsp + 0x30]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180005faf
lea r8d, [rax + 1]
lea rdx, [0x180036868]
mov rcx, rdi
call fcn.180018350
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x9ff5b15e
call fcn.180018300
test rax, rax
je 0x180005fd9
xor edx, edx
mov rcx, rax
call fcn.1800187c4
mov qword [0x180036090], rax
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x22634ca2
call fcn.180018300
test rax, rax
je 0x180006020
xor edx, edx
mov rcx, rax
call fcn.1800187c4
test rax, rax
je 0x180006020
mov rcx, qword [0x180036b58]
mov rdx, rax
add rcx, 0x30
call fcn.180019574
mov r11, qword [0x180036b58]
mov byte [r11 + 0x39], 0xff
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x384d2124
call fcn.180018300
test rax, rax
je 0x180006099
xor edx, edx
mov rcx, rax
call fcn.1800187c4
test rax, rax
mov rdi, rax
je 0x180006099
lea rax, [rsp + 0x1f0]
lea r8, [0x18001298c]
mov r9, rdi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180006081
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006099
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x3cc4074e
call fcn.180018300
test rax, rax
je 0x180006149
mov edx, 0x10
mov rcx, rax
call fcn.1800187c4
test rax, rax
mov rdi, rax
je 0x180006149
mov rcx, qword [0x180036b58]
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180036b58]
mov ecx, dword [r11 + 0x98]
test ecx, ecx
je 0x18000610b
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x180036b58]
mov eax, dword [r11 + 0x98]
test eax, eax
jne 0x1800060ee
mov rcx, qword [0x180036b58]
mov r8, qword [rcx]
test r8, r8
je 0x18000613c
lea rax, [0x18003a1f2]
cmp r8, rax
je 0x18000613c
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180036b58]
mov qword [rcx], rdi
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xa30a3586
call fcn.180018300
test rax, rax
je 0x180006184
xor edx, edx
mov rcx, rax
call fcn.1800187c4
test rax, rax
je 0x180006184
mov rcx, qword [0x180036b58]
mov rdx, rax
add rcx, 8
call fcn.180019574
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0xcbfeea2a
call fcn.180018300
test rax, rax
je 0x1800061bf
xor edx, edx
mov rcx, rax
call fcn.1800187c4
test rax, rax
je 0x1800061bf
mov rcx, qword [0x180036b58]
mov rdx, rax
add rcx, 8
call fcn.180019574
mov r8d, dword [0x180036a50]
mov rdx, rbx
mov ecx, 0x68a7a2c
call fcn.180018300
test rax, rax
je 0x1800061fa
xor edx, edx
mov rcx, rax
call fcn.1800187c4
test rax, rax
je 0x1800061fa
mov rcx, qword [0x180036b58]
mov rdx, rax
add rcx, 0x18
call fcn.180019574
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret