Function at 0x180005a7c
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov r8d, dword [0x1800309f8]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x624f700f
call fcn.180017f18
test rax, rax
je 0x180005ace
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180030050]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180030050], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xa4c86fb9
call fcn.180017f18
test rax, rax
je 0x180005b10
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002fe9c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002fe9c], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x6bce5ecb
call fcn.180017f18
test rax, rax
je 0x180005b52
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180030038]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180030038], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x424f17a5
call fcn.180017f18
test rax, rax
je 0x180005b94
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003003c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18003003c], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xe63015d6
call fcn.180017f18
test rax, rax
je 0x180005bd6
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180030040]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180030040], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x1e803d58
call fcn.180017f18
test rax, rax
je 0x180005c18
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180030048]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180030048], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x160315fa
call fcn.180017f18
test rax, rax
je 0x180005c5a
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f5b0]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f5b0], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x260281ff
call fcn.180017f18
test rax, rax
je 0x180005c9c
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18002f41c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18002f41c], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x2b263555
call fcn.180017f18
test rax, rax
je 0x180005cde
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003004c]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x18003004c], ecx
cmp dword [0x1800308f8], 0x79405f4
jne 0x180005eb9
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x7048b13
call fcn.180017f18
test rax, rax
mov rdi, rax
je 0x180005d4b
lea r8, [rsp + 0x1e8]
lea rdx, [rsp + 0x1f8]
lea rcx, [0x1800331ea]
call fcn.180004c0c
test eax, eax
je 0x180005d34
mov rcx, rdi
call fcn.180002ff8
jmp 0x180005d4b
mov r8, qword [rsp + 0x1f8]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xdfaff672
call fcn.180017f18
test rax, rax
je 0x180005d8d
lea r8, [rsp + 0x1e8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180030044]
test eax, eax
cmovne ecx, dword [rsp + 0x1e8]
mov dword [0x180030044], ecx
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xecb95541
call fcn.180017f18
test rax, rax
mov rdi, rax
je 0x180005dcf
lea rdx, [rsp + 0x30]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180005dcf
lea r8d, [rax + 1]
lea rdx, [0x180030808]
mov rcx, rdi
call fcn.180017f68
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x9ff1b35e
call fcn.180017f18
test rax, rax
je 0x180005df9
xor edx, edx
mov rcx, rax
call fcn.1800183dc
mov qword [0x180030030], rax
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x22674ea2
call fcn.180017f18
test rax, rax
je 0x180005e40
xor edx, edx
mov rcx, rax
call fcn.1800183dc
test rax, rax
je 0x180005e40
mov rcx, qword [0x180030b00]
mov rdx, rax
add rcx, 0x30
call fcn.1800191a0
mov r11, qword [0x180030b00]
mov byte [r11 + 0x39], 0xff
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x38492324
call fcn.180017f18
test rax, rax
je 0x180005eb9
xor edx, edx
mov rcx, rax
call fcn.1800183dc
test rax, rax
mov rdi, rax
je 0x180005eb9
lea rax, [rsp + 0x1f0]
lea r8, [0x18001257c]
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 0x180005ea1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180005eb9
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x3cc0054e
call fcn.180017f18
test rax, rax
je 0x180005f69
mov edx, 0x10
mov rcx, rax
call fcn.1800183dc
test rax, rax
mov rdi, rax
je 0x180005f69
mov rcx, qword [0x180030b00]
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180030b00]
mov ecx, dword [r11 + 0x98]
test ecx, ecx
je 0x180005f2b
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x180030b00]
mov eax, dword [r11 + 0x98]
test eax, eax
jne 0x180005f0e
mov rcx, qword [0x180030b00]
mov r8, qword [rcx]
test r8, r8
je 0x180005f5c
lea rax, [0x1800341d3]
cmp r8, rax
je 0x180005f5c
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180030b00]
mov qword [rcx], rdi
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xa30e3786
call fcn.180017f18
test rax, rax
je 0x180005fa4
xor edx, edx
mov rcx, rax
call fcn.1800183dc
test rax, rax
je 0x180005fa4
mov rcx, qword [0x180030b00]
mov rdx, rax
add rcx, 8
call fcn.1800191a0
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0xcbfae82a
call fcn.180017f18
test rax, rax
je 0x180005fdf
xor edx, edx
mov rcx, rax
call fcn.1800183dc
test rax, rax
je 0x180005fdf
mov rcx, qword [0x180030b00]
mov rdx, rax
add rcx, 8
call fcn.1800191a0
mov r8d, dword [0x1800309f8]
mov rdx, rbx
mov ecx, 0x68e782c
call fcn.180017f18
test rax, rax
je 0x18000601a
xor edx, edx
mov rcx, rax
call fcn.1800183dc
test rax, rax
je 0x18000601a
mov rcx, qword [0x180030b00]
mov rdx, rax
add rcx, 0x18
call fcn.1800191a0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret