Function at 0x1400d1390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x6b0
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + ATL::CSimpleStringT<char,1>::operator+=], rax
mov ebp, dword [rsp + 0x6f0]
mov esi, r9d
mov r14, r8
mov edi, edx
mov rbx, rcx
lea eax, [rbp - 1]
cmp eax, 2
ja 0x1400d1753
mov eax, dword [rcx + 8]
cmp ebp, 3
jne 0x1400d148c
cmp edx, eax
je 0x1400d1436
cmp eax, 0xffffffff
je 0x1400d13f2
mov rcx, qword [rcx]
call fcn.1400d4460
mov rcx, qword [rbx]
mov dword [rbx + 8], 0xffffffff
cmp edi, dword [rcx + 8]
jge 0x1400d1753
cmp dword [rcx + 0x14], edi
jle 0x1400d1415
call fcn.1400d46e0
mov rcx, qword [rbx]
cmp dword [rcx + 0x14], edi
jge 0x1400d1427
mov rcx, qword [rbx]
call fcn.1400d4740
mov rcx, qword [rbx]
cmp dword [rcx + 0x14], edi
jl 0x1400d1417
mov rdx, qword [rbx + 0x240]
call fcn.1400d48f0
mov dword [rbx + 8], edi
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, r14
call fcn.1400d4cb0
mov edi, eax
test eax, eax
jg 0x1400d145e
mov rcx, qword [rbx]
call fcn.1400d4460
mov dword [rbx + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x1400d1531
test edi, edi
jle 0x1400d1477
mov eax, 0x600
jmp 0x1400d1758
cmp edi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
jmp 0x1400d1758
cmp eax, 0xffffffff
je 0x1400d1499
mov rcx, qword [rcx]
call fcn.1400d4460
mov rax, qword [rbx]
mov dword [rbx + 8], 0xffffffff
cmp edi, dword [rax + 8]
jge 0x1400d1753
cmp dword [rax + 0x14], edi
jle 0x1400d14bf
mov rcx, rax
call fcn.1400d46e0
mov rax, qword [rbx]
cmp dword [rax + 0x14], edi
jge 0x1400d14d1
mov rcx, qword [rbx]
call fcn.1400d4740
mov rax, qword [rbx]
cmp dword [rax + 0x14], edi
jl 0x1400d14c1
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
call fcn.1400d0980
test byte [rsp + 0x25c], 0x10
je 0x1400d1538
cmp ebp, 1
je 0x1400d1531
movzx eax, word [r14]
cmp ax, 0x2f
je 0x1400d1525
cmp ax, 0x5c
je 0x1400d1525
test ax, ax
je 0x1400d150c
cmp word [r14 + 2], 0x3a
je 0x1400d1525
lea rsi, [rbx + 0x250]
mov rdx, r14
mov rcx, rsi
call fcn.1400d0480
xor eax, eax
jmp 0x1400d1758
xor esi, esi
mov rdx, r14
mov ecx, esi
call fcn.1400d0480
xor eax, eax
jmp 0x1400d1758
xor esi, esi
cmp ebp, 1
je 0x1400d1675
movzx eax, word [r14]
mov r9, r14
mov rcx, r14
test ax, ax
je 0x1400d156f
cmp ax, 0x2f
je 0x1400d155e
cmp ax, 0x5c
jne 0x1400d1562
lea r9, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400d1552
lea rdx, [rsp + 0x280]
mov rcx, r14
sub rdx, r14
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400d1580
cmp r9, r14
jne 0x1400d159f
mov word [rsp + 0x280], si
jmp 0x1400d15e3
mov rax, r9
sub rax, r14
sar rax, 1
add rax, rax
cmp rax, 0x208
jae 0x1400d1780
mov word [rsp + rax + 0x280], si
movzx eax, word [rsp + 0x280]
cmp ax, 0x2f
je 0x1400d1611
cmp ax, 0x5c
je 0x1400d1611
test ax, ax
je 0x1400d15e3
cmp word [rsp + 0x282], 0x3a
je 0x1400d1611
mov qword [rsp + 0x20], r9
lea rdi, [rbx + 0x250]
mov r8, rdi
lea r9, [rsp + 0x280]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400d1631
lea r8, [rsp + 0x280]
lea rdx, str._s_s
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdi, rsi
lea rdx, [rsp + 0x280]
mov rcx, rdi
call fcn.1400d0480
mov eax, dword [rsp + 0x25c]
lea rcx, [rsp + 0x490]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp r14, 0xffffffffffffffff
jne 0x1400d1685
mov eax, 0x200
jmp 0x1400d1758
mov rdx, qword [rbx + 0x240]
mov rcx, qword [rbx]
call fcn.1400d48f0
cmp qword [rbx + 0x248], rsi
jne 0x1400d16b0
mov ecx, 0x4000
call sub.mfc140u.dll_operator
mov qword [rbx + 0x248], rax
nop
mov rdx, qword [rbx + 0x248]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
mov r8d, 0x4000
call fcn.1400d4cb0
mov edi, eax
cmp eax, 0xffffff96
je 0x1400d1734
test eax, eax
js 0x1400d1703
jle 0x1400d16f8
mov rdx, qword [rbx + 0x248]
lea r9, [rsp + 0x44]
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d170a
cmp byte [rsp + 0x40], sil
jne 0x1400d1711
test edi, edi
jne 0x1400d16b0
mov esi, 0x5000000
jmp 0x1400d1739
mov esi, 0x400
jmp 0x1400d1739
lea r9, [rsp + 0x270]
mov rcx, r14
lea r8, [rsp + 0x260]
lea rdx, [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1400d1739
mov esi, 0x1000
cmp ebp, 1
je 0x1400d1747
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call fcn.1400d4460
mov eax, esi
jmp 0x1400d1758
mov eax, 0x10000
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14010bb40
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14010c40c
int3