Function at 0x180005e18
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov r8d, dword [0x180039d14]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x624f700f
call fcn.180018c54
test rax, rax
je 0x180005e6a
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039144]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039144], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xa4c86fb9
call fcn.180018c54
test rax, rax
je 0x180005eac
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039128]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039128], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x6bce5ecb
call fcn.180018c54
test rax, rax
je 0x180005eee
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [str._xx_n]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [str._xx_n], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x424f17a5
call fcn.180018c54
test rax, rax
je 0x180005f30
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039130]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039130], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xe63015d6
call fcn.180018c54
test rax, rax
je 0x180005f72
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039134]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039134], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x1e803d58
call fcn.180018c54
test rax, rax
je 0x180005fb4
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003913c]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x18003913c], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x160315fa
call fcn.180018c54
test rax, rax
je 0x180005ff6
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180038640]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180038640], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x260281ff
call fcn.180018c54
test rax, rax
je 0x180006038
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18003863c]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x18003863c], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x2b263555
call fcn.180018c54
test rax, rax
je 0x18000607a
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039140]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039140], ecx
cmp dword [0x180039c68], 0x79405f4
jne 0x1800062db
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x7048b13
call fcn.180018c54
mov rdi, rax
mov qword [rsp + 0x208], rax
test rax, rax
je 0x1800060e9
lea r8, [rsp + 0x1f8]
lea rdx, [rsp + 0x30]
lea rcx, [0x18003d1d3]
call fcn.180004e24
test eax, eax
je 0x1800060d5
mov rcx, rdi
call fcn.180003108
jmp 0x1800060e9
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [rsp + 0x1f8]
lea rdx, [rsp + 0x208]
lea rcx, [0x18003d1ce]
call fcn.180004e24
test eax, eax
jne 0x18000614b
mov edx, dword [rsp + 0x1f8]
mov rdi, qword [rsp + 0x208]
cmp edx, 1
jbe 0x180006137
mov r8d, dword [0x180039d10]
xor r9d, r9d
mov rcx, rdi
call fcn.18002b25c
mov rcx, rdi
call fcn.18001ec78
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000616c
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x13444056
call fcn.180018c54
test rax, rax
je 0x18000616c
mov rcx, rax
call fcn.18001ec78
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xdfaff672
call fcn.180018c54
test rax, rax
je 0x1800061ae
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180039138]
test eax, eax
cmovne ecx, dword [rsp + 0x1f8]
mov dword [0x180039138], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xecb95541
call fcn.180018c54
mov rdi, rax
test rax, rax
je 0x1800061f1
lea rdx, [rsp + 0x40]
mov ecx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800061f1
lea r8d, [rax + 1]
lea rdx, [0x180039b78]
mov rcx, rdi
call fcn.180018ca4
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x9ff1b35e
call fcn.180018c54
test rax, rax
je 0x18000621b
xor edx, edx
mov rcx, rax
call fcn.18001855c
mov qword [0x180039120], rax
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x22674ea2
call fcn.180018c54
test rax, rax
je 0x180006262
xor edx, edx
mov rcx, rax
call fcn.18001855c
test rax, rax
je 0x180006262
mov rcx, qword [0x180039fb0]
mov rdx, rax
add rcx, 0x30
call fcn.18001a238
mov r11, qword [0x180039fb0]
mov byte [r11 + 0x39], 0xff
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x38492324
call fcn.180018c54
test rax, rax
je 0x1800062db
xor edx, edx
mov rcx, rax
call fcn.18001855c
mov rdi, rax
test rax, rax
je 0x1800062db
lea rax, [rsp + 0x200]
lea r8, [0x180012f10]
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 0x1800062c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800062db
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x3cc0054e
call fcn.180018c54
test rax, rax
je 0x180006388
mov edx, 0x10
mov rcx, rax
call fcn.18001855c
mov qword [rsp + 0x208], rax
test rax, rax
je 0x180006388
mov rcx, qword [0x180039fb0]
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x180006330
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x180039fb0]
mov eax, dword [r11 + 0x98]
test eax, eax
jne 0x180006325
mov rcx, qword [0x180039fb0]
mov r8, qword [rcx]
test r8, r8
je 0x180006373
lea rax, [0x18003e153]
cmp r8, rax
je 0x180006373
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039fb0]
mov rax, qword [rsp + 0x208]
mov qword [rcx], rax
add rcx, 0x70
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x9cad18de
call fcn.180018c54
test rax, rax
je 0x1800063c9
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x1800063c9
mov rax, qword [0x180039fb0]
mov ecx, dword [rsp + 0x1f8]
mov dword [rax + 0x64], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xac4618f8
call fcn.180018c54
test rax, rax
je 0x18000640a
lea r8, [rsp + 0x1f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x18000640a
mov rax, qword [0x180039fb0]
mov ecx, dword [rsp + 0x1f8]
mov dword [rax + 0x4c], ecx
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xb576960a
call fcn.180018c54
test rax, rax
je 0x18000643a
xor edx, edx
mov rcx, rax
call fcn.18001855c
test rax, rax
je 0x18000643a
mov rcx, rax
call fcn.18000505c
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0xbeed6218
call fcn.180018c54
test rax, rax
je 0x180006476
lea r8, [rsp + 0x1f8]
mov edx, 1
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x180006476
mov edi, dword [rsp + 0x1f8]
jmp 0x18000647f
xor edi, edi
mov dword [rsp + 0x1f8], edi
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x7f1f35
call fcn.180018c54
test rax, rax
je 0x1800064a2
mov edx, edi
mov rcx, rax
call fcn.180004fa0
mov r8d, dword [0x180039d14]
mov rdx, rbx
mov ecx, 0x68e782c
call fcn.180018c54
test rax, rax
je 0x1800064dd
xor edx, edx
mov rcx, rax
call fcn.18001855c
test rax, rax
je 0x1800064dd
mov rcx, qword [0x180039fb0]
mov rdx, rax
add rcx, 0x18
call fcn.18001a238
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret