Function at 0x14004d4e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x518]
mov rax, qword [0x140201180]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, [0x14024c154]
call fcn.1400b51d0
nop
lea rcx, [rbp + 0x28]
call fcn.14004ed90
nop
lea rcx, [rbp + 0x28]
call fcn.14004ed50
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x14]
add eax, 0x76c
mov rcx, qword [rbp + 8]
mov dword [rcx + 0x14], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x10]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x84], eax
mov r8d, 0xff
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.14019f170
nop
mov rax, qword [rbp + 0x4c0]
add rax, 0x4e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e84]
cmp dword [rbp + 0x84], eax
jne 0x14004d6ef
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e88]
cmp dword [rbp + 0x64], eax
jne 0x14004d6ef
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e8c]
cmp dword [rbp + 0x44], eax
jne 0x14004d6ef
mov rax, qword [rbp + 0x4c0]
add rax, 0x4c20
mov rcx, rax
call fcn.14004eed0
mov dword [rbp + 0x1c4], eax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e20]
cmp dword [rbp + 0x1c4], eax
jae 0x14004d634
mov rax, qword [rbp + 0x4c0]
add rax, 0x4e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14004d917
xor edx, edx
lea rcx, [0x1401b720c]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
mov rax, qword [rbp + 0x4c0]
cmp qword [rax + 0x4c18], 0
je 0x14004d67b
mov rax, qword [rbp + 0x4c0]
mov rcx, qword [rax + 0x4c18]
call fcn.1400df330
nop
mov rax, qword [rbp + 0x4c0]
mov qword [rax + 0x4c18], 0
mov dword [rbp + 0x1e4], 1
jmp 0x14004d695
mov eax, dword [rbp + 0x1e4]
inc eax
mov dword [rbp + 0x1e4], eax
mov r8d, 0xff
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.14019f170
nop
mov rax, qword [rbp + 0x4c0]
add rax, 0x4d1f
mov r9d, dword [rbp + 0x1e4]
mov r8, rax
lea rdx, str._s_part__d.log
lea rcx, [rbp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfA]
nop
lea rcx, [rbp + 0xb0]
call fcn.14004f0b0
test eax, eax
jne 0x14004d6e8
jmp 0x14004d6ea
jmp 0x14004d687
jmp 0x14004d883
mov rax, qword [rbp + 0x4c0]
mov ecx, dword [rbp + 0x84]
mov dword [rax + 0x4e84], ecx
mov rax, qword [rbp + 0x4c0]
mov ecx, dword [rbp + 0x64]
mov dword [rax + 0x4e88], ecx
mov rax, qword [rbp + 0x4c0]
mov ecx, dword [rbp + 0x44]
mov dword [rax + 0x4e8c], ecx
mov rax, qword [rbp + 0x4c0]
cmp qword [rax + 0x4c18], 0
je 0x14004d759
mov rax, qword [rbp + 0x4c0]
mov rcx, qword [rax + 0x4c18]
call fcn.1400df330
nop
mov rax, qword [rbp + 0x4c0]
mov qword [rax + 0x4c18], 0
xor edx, edx
lea rcx, [0x1401b720c]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
lea rax, str.ConnectServer
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e8c]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e88]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e84]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e80]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x4c0]
mov r9d, dword [rax + 0x4e7c]
mov rax, qword [rbp + 0x4c0]
mov r8d, dword [rax + 0x4e78]
lea rdx, str.Log_02d._02d._04d____02d._02d._04d__s.log
lea rcx, [rbp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfA]
nop
lea rax, str.ConnectServer
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x4c0]
mov eax, dword [rax + 0x4e8c]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x4c0]
mov r9d, dword [rax + 0x4e88]
mov rax, qword [rbp + 0x4c0]
mov r8d, dword [rax + 0x4e84]
lea rdx, str.Log_02d._02d._04d__s.log
lea rcx, [rbp + 0x210]
call fcn.140044cf0
nop
mov rax, qword [rbp + 0x4c0]
add rax, 0x4d1f
mov r8d, 0xff
xor edx, edx
mov rcx, rax
call fcn.14019f170
nop
lea rcx, [rbp + 0x210]
call fcn.14019f710
sub rax, 4
mov rcx, qword [rbp + 0x4c0]
add rcx, 0x4d1f
mov r8, rax
lea rdx, [rbp + 0x210]
call fcn.14019ead0
nop
mov rax, qword [rbp + 0x4c0]
add rax, 0x4c20
lea rdx, [rbp + 0xb0]
mov rcx, rax
call fcn.14019f870
nop
mov rax, qword [rbp + 0x4c0]
cmp qword [rax + 0x4c18], 0
jne 0x14004d900
mov rax, qword [rbp + 0x4c0]
add rax, 0x4c20
lea rdx, [0x1401b7234]
mov rcx, rax
call fcn.1400dee60
mov rcx, qword [rbp + 0x4c0]
mov qword [rcx + 0x4c18], rax
mov rax, qword [rbp + 0x4c0]
cmp qword [rax + 0x4c18], 0
jne 0x14004d900
lea rdx, str.Log_File_create_error.
mov rcx, qword [rbp + 0x4c0]
call fcn.14004e400
nop
mov rax, qword [rbp + 0x4c0]
add rax, 0x4e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400b4fa0
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.1400b5470
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret