Function at 0x140056a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x30]
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
lea r8d, [r14 + 0x2b]
lea rdx, str._Loading_OnInitDialog_____Entering_routine.
lea rcx, [rbp - 0x30]
call fcn.14000dc20
nop
lea r8d, [r14 + 5]
lea rdx, [rbp - 0x30]
call fcn.140078560
mov rdx, qword [rdi]
test rdx, rdx
je 0x140056ac9
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
lea rax, [rbp - 0x70]
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
mov r8d, 0x3b
lea rdx, str._Loading_OnInitDialog_____spawning_thread_to_handle_loading
lea rcx, [rbp - 0x70]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x70]
call fcn.140078560
mov ecx, 0x20
call fcn.140166ea4
mov rsi, rax
mov qword [rbp + 0x68], rax
test rax, rax
je 0x140056b3d
mov edx, 0x40d
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rsi], rbx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdi
mov byte [rsi + 0x18], 0
jmp 0x140056b40
mov rsi, r14
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov rdx, rsi
lea rcx, [rbp + 0x68]
call fcn.140057030
nop
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rax], rdx
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x140056b8e
lock dec dword [rdi + 8]
jne 0x140056b8e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rdi + 0xc]
jne 0x140056b8e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, rsi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140009ce0
nop
lea rdx, [rsp + 0x48]
call fcn.140056fa0
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140056bd2
lock dec dword [rdi + 8]
jne 0x140056bd2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rdi + 0xc]
jne 0x140056bd2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, 0x30
call fcn.140166ea4
mov rsi, rax
mov qword [rbp + 0x78], rax
test rax, rax
je 0x140056cdd
mov qword [rsp + 0x58], r14
mov rax, qword [0x140239d50]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0
lea rax, [0x1401d0848]
or rax, 1
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 1
lea rdx, [rsi + 8]
mov qword [rbp - 0x10], rdx
mov qword [rdx], r14
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140056c76
mov qword [rdx], rax
test al, 1
je 0x140056c5e
mov rax, qword [rsp + 0x60]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rdx + 0x10], rax
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [rdx + 0x20], rax
jmp 0x140056c76
mov rax, qword [rsp + 0x58]
and rax, 0xfffffffffffffffe
add rdx, 8
xor r8d, r8d
lea rcx, [rsp + 0x60]
call qword [rax]
nop
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rsi
lea r8, [0x1400572c0]
xor edx, edx
xor ecx, ecx
call fcn.14016a50c
mov qword [rsi], rax
test rax, rax
jne 0x140056cdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp]
call fcn.1401670f4
nop
lea rax, vtable.win32_error.0
mov qword [rbp], rax
lea rax, str._beginthreadex
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], r14
mov dword [rbp + 0x28], ebx
lea rdx, [0x14022dc38]
lea rcx, [rbp]
call fcn.140170da8
nop
jmp 0x140056ce0
mov rsi, r14
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r14
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.1400570a0
nop
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
mov qword [rax], rdx
mov rdi, qword [rbp + 0x70]
test rdi, rdi
je 0x140056d2e
lock dec dword [rdi + 8]
jne 0x140056d2e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rdi + 0xc]
jne 0x140056d2e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, rsi
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140009ce0
nop
mov rdx, qword [rsp + 0x38]
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], r14
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x38], r14
mov rax, qword [0x140239d40]
mov qword [rbp - 0x80], rax
mov qword [0x140239d40], rdx
mov rdi, qword [0x140239d48]
mov qword [0x140239d48], rcx
mov qword [rbp - 0x78], rdi
test rdi, rdi
je 0x140056da7
lock dec dword [rdi + 8]
jne 0x140056da7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rdi + 0xc]
jne 0x140056da7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140056dd0
lock dec dword [rdi + 8]
jne 0x140056dd0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rdi + 0xc]
jne 0x140056dd0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
nop
test byte [rsp + 0x30], 1
je 0x140056e0e
and dword [rsp + 0x30], 0xfffffffe
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140056e0e
test al, 1
jne 0x140056e09
and rax, 0xfffffffffffffffe
mov r9, qword [rax]
test r9, r9
je 0x140056e09
mov r8d, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call r9
mov qword [rsp + 0x58], r14
lea rax, [rbp - 0x50]
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov r8d, 0x2a
lea rdx, str._Loading_OnInitDialog_____Leaving_routine.
lea rcx, [rbp - 0x50]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x50]
call fcn.140078560
mov eax, 1
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret