Function at 0x14004d940
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, WSAAsyncSelect
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a8]
mov rax, qword [0x140201180]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x14024c154]
call fcn.1400b51d0
nop
mov r8d, 0xff
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14019f170
nop
lea rcx, [rbp + 0x148]
call fcn.14004ed90
nop
lea rcx, [rbp + 0x148]
call fcn.14004ed50
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x14]
add eax, 0x76c
mov rcx, qword [rbp + 0x128]
mov dword [rcx + 0x14], eax
mov rax, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + 0xc]
mov dword [rax + 0x4e84], ecx
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x10]
inc eax
mov rcx, qword [rbp + 0x260]
mov dword [rcx + 0x4e88], eax
mov rax, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + 0x14]
mov dword [rax + 0x4e8c], ecx
mov rax, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x260]
mov ecx, dword [rcx + 0x4e84]
mov dword [rax + 0x4e78], ecx
mov rax, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x260]
mov ecx, dword [rcx + 0x4e88]
mov dword [rax + 0x4e7c], ecx
mov rax, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x260]
mov ecx, dword [rcx + 0x4e8c]
mov dword [rax + 0x4e80], ecx
lea rax, str.ConnectServer
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x260]
mov eax, dword [rax + 0x4e80]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x260]
mov r9d, dword [rax + 0x4e7c]
mov rax, qword [rbp + 0x260]
mov r8d, dword [rax + 0x4e78]
lea rdx, str.Log_02d._02d._04d__s.log
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfA]
nop
xor edx, edx
lea rcx, [0x1401b720c]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
lea rcx, [rbp + 0x10]
call fcn.14004f0b0
cmp eax, 1
jne 0x14004db6c
mov dword [rbp + 0x164], 2
jmp 0x14004daf1
mov eax, dword [rbp + 0x164]
inc eax
mov dword [rbp + 0x164], eax
mov r8d, 0xff
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14019f170
nop
mov eax, dword [rbp + 0x164]
mov dword [rsp + 0x30], eax
lea rax, str.ConnectServer
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x260]
mov eax, dword [rax + 0x4e80]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x260]
mov r9d, dword [rax + 0x4e7c]
mov rax, qword [rbp + 0x260]
mov r8d, dword [rax + 0x4e78]
lea rdx, str.Log_02d._02d._04d__s_start__d.log
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfA]
nop
lea rcx, [rbp + 0x10]
call fcn.14004f0b0
test eax, eax
jne 0x14004db67
jmp 0x14004db6c
jmp 0x14004dae3
mov rax, qword [rbp + 0x260]
add rax, 0x4d1f
mov r8d, 0xff
xor edx, edx
mov rcx, rax
call fcn.14019f170
nop
lea rcx, [rbp + 0x10]
call fcn.14019f710
sub rax, 4
mov rcx, qword [rbp + 0x260]
add rcx, 0x4d1f
mov r8, rax
lea rdx, [rbp + 0x10]
call fcn.14019ead0
nop
mov rax, qword [rbp + 0x260]
add rax, 0x4c20
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14019f870
nop
mov rax, qword [rbp + 0x260]
cmp qword [rax + 0x4c18], 0
jne 0x14004dc2c
mov rax, qword [rbp + 0x260]
add rax, 0x4c20
lea rdx, [0x1401b7234]
mov rcx, rax
call fcn.1400dee60
mov rcx, qword [rbp + 0x260]
mov qword [rcx + 0x4c18], rax
mov rax, qword [rbp + 0x260]
cmp qword [rax + 0x4c18], 0
jne 0x14004dc2c
lea rdx, str.Log_file_create_error.
mov rcx, qword [rbp + 0x260]
call fcn.14004e400
nop
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400b4fa0
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400b5470
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret