Function at 0x180005428
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov r8d, dword [0x18002fa58]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x89fcc7c6
call fcn.180017014
test rax, rax
je 0x18000547a
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f104]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f104], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x4f7bd870
call fcn.180017014
test rax, rax
je 0x1800054bc
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0e8]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0e8], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x807de902
call fcn.180017014
test rax, rax
je 0x1800054fe
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0ec]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0ec], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xa9fca06c
call fcn.180017014
test rax, rax
je 0x180005540
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0f0]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0f0], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xd83a21f
call fcn.180017014
test rax, rax
je 0x180005582
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0f4]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0f4], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xf5338a91
call fcn.180017014
test rax, rax
je 0x1800055c4
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0fc]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0fc], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xfdb0a233
call fcn.180017014
test rax, rax
je 0x180005606
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002e138]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002e138], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xcdb13636
call fcn.180017014
test rax, rax
je 0x180005648
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002e134]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002e134], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xc095829c
call fcn.180017014
test rax, rax
je 0x18000568a
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f100]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f100], ecx
cmp dword [0x18002f90c], 0xec27b23d
jne 0x1800057fc
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x341c41bb
call fcn.180017014
test rax, rax
je 0x1800056dc
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f0f8]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f0f8], ecx
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x70ae288
call fcn.180017014
test rax, rax
mov rdi, rax
je 0x18000571e
lea rdx, [rsp + 0x30]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18000571e
lea r8d, [rax + 1]
lea rdx, [0x18002f830]
mov rcx, rdi
call fcn.180017064
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x74420497
call fcn.180017014
test rax, rax
je 0x180005748
xor edx, edx
mov rcx, rax
call fcn.180016cf4
mov qword [0x18002f0e0], rax
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xc9d4f96b
call fcn.180017014
test rax, rax
je 0x180005783
xor edx, edx
mov rcx, rax
call fcn.180016cf4
test rax, rax
je 0x180005783
mov rcx, qword [0x18002faf8]
mov rdx, rax
add rcx, 0x24
call fcn.18001dcac
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xd3fa94ed
call fcn.180017014
test rax, rax
je 0x1800057fc
xor edx, edx
mov rcx, rax
call fcn.180016cf4
test rax, rax
mov rdi, rax
je 0x1800057fc
lea rax, [rsp + 0x1f0]
lea r8, [0x180012324]
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 0x1800057e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800057fc
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xd773b287
call fcn.180017014
test rax, rax
je 0x1800058a6
mov edx, 0x10
mov rcx, rax
call fcn.180016cf4
test rax, rax
mov rdi, rax
je 0x1800058a6
mov rcx, qword [0x18002faf8]
add rcx, 0x42
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x18002faf8]
mov ecx, dword [r11 + 0x6a]
test ecx, ecx
je 0x180005868
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x18002faf8]
mov eax, dword [r11 + 0x6a]
test eax, eax
jne 0x18000584e
mov rcx, qword [0x18002faf8]
mov r8, qword [rcx]
test r8, r8
je 0x180005899
lea rax, [0x1800331e0]
cmp r8, rax
je 0x180005899
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18002faf8]
mov qword [rcx], rdi
add rcx, 0x42
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x48bd804f
call fcn.180017014
test rax, rax
je 0x1800058e1
xor edx, edx
mov rcx, rax
call fcn.180016cf4
test rax, rax
je 0x1800058e1
mov rcx, qword [0x18002faf8]
mov rdx, rax
add rcx, 8
call fcn.18001dcac
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0x20495fe3
call fcn.180017014
test rax, rax
je 0x18000591c
xor edx, edx
mov rcx, rax
call fcn.180016cf4
test rax, rax
je 0x18000591c
mov rcx, qword [0x18002faf8]
mov rdx, rax
add rcx, 8
call fcn.18001dcac
mov r8d, dword [0x18002fa58]
mov rdx, rbx
mov ecx, 0xed3dcfe5
call fcn.180017014
test rax, rax
je 0x180005957
xor edx, edx
mov rcx, rax
call fcn.180016cf4
test rax, rax
je 0x180005957
mov rcx, qword [0x18002faf8]
mov rdx, rax
add rcx, 0x12
call fcn.18001dcac
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret