Function at 0x180059d90
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1800a74e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea r14d, [rdx + 0x1e]
mov rbp, r9
mov r15, r8
mov esi, edx
mov rdi, rcx
cmp edx, r14d
jae 0x18005a005
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x30], r12
movabs r12, 0x412e847fcccccccd
mov qword [r11 - 0x38], r13
xor r13d, r13d
mov eax, esi
sub eax, 0x50
je 0x180059fb9
sub eax, 6
je 0x180059f99
sub eax, 0x2b
je 0x180059ede
sub eax, 0xa4
je 0x180059ea8
cmp eax, 6
jne 0x180059fe1
lea rax, [r15 + 8]
mov r8d, 0x22
lea rcx, [rbp + 0x10]
movsxd rdx, dword [rax - 8]
movsd xmm1, qword [rcx - 0x10]
sar rdx, 4
movsd xmm0, qword [rdi + rdx*8]
comisd xmm0, xmm1
jbe 0x180059e40
movsd qword [rdi + rdx*8], xmm1
movsxd rdx, dword [rax - 4]
movsd xmm1, qword [rcx - 8]
sar rdx, 4
movsd xmm0, qword [rdi + rdx*8]
comisd xmm0, xmm1
jbe 0x180059e5d
movsd qword [rdi + rdx*8], xmm1
movsxd rdx, dword [rax]
movsd xmm1, qword [rcx]
sar rdx, 4
movsd xmm0, qword [rdi + rdx*8]
comisd xmm0, xmm1
jbe 0x180059e78
movsd qword [rdi + rdx*8], xmm1
movsxd rdx, dword [rax + 4]
movsd xmm1, qword [rcx + 8]
sar rdx, 4
movsd xmm0, qword [rdi + rdx*8]
comisd xmm0, xmm1
jbe 0x180059e95
movsd qword [rdi + rdx*8], xmm1
add rcx, 0x20
add rax, 0x10
sub r8, 1
jne 0x180059e23
jmp 0x180059fe1
mov rax, rdi
mov ecx, 4
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
lea rax, [rax + 0x40]
mov qword [rax - 0x28], r12
mov qword [rax - 0x20], r12
mov qword [rax - 0x18], r12
mov qword [rax - 0x10], r12
mov qword [rax - 8], r12
sub rcx, 1
jne 0x180059eb0
jmp 0x180059fe1
mov ebx, 0x2710
lea r12, [0x1800859d0]
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], r12
mov r9d, 0x119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], r13d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1800405a0
xor edx, edx
mov r8d, 0xf1
mov rcx, rax
call fcn.180032dd0
sub rbx, 1
jne 0x180059ef0
mov ecx, r13d
movabs r12, 0x412e847fcccccccd
mov dword [rsp + 0x30], ecx
mov ebx, 0xff
mov eax, ebx
sub eax, 2
je 0x180059f64
sub eax, 0x90
je 0x180059fe1
cmp eax, 0x6d
jne 0x180059f89
mov dword [0x1800a6c78], ecx
jmp 0x180059f89
mov eax, dword [pe_dos_header]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], eax
mov edx, 0x34
xor ecx, ecx
call fcn.180030540
mov ecx, dword [rsp + 0x30]
add ebx, 0x90
cmp ebx, 0x2af
jb 0x180059f45
jmp 0x180059fe1
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180059fe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18005a024
jmp 0x180059fe1
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbp
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esi, 6
cmp esi, r14d
jb 0x180059de4
mov r12, qword [rsp + 0x278]
mov rbx, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800864a0
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, rbp
lea rcx, str.Failed_to_get_BoxArt_binary_data.
call fcn.180047050
int3