Function at 0x14004df80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x6c0
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov r15d, dword [rsp + 0x710]
mov r12d, r9d
mov r14, r8
mov ebp, edx
mov rdi, rcx
cmp r15d, 3
je 0x14004e307
lea eax, [r15 - 1]
cmp eax, 1
ja 0x14004e32e
cmp dword [rcx + 8], 0xffffffff
je 0x14004dfe3
mov rcx, qword [rcx]
call fcn.14004d060
mov rax, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rax + 8]
jge 0x14004e32e
xor esi, esi
cmp dword [rax + 0x14], ebp
jle 0x14004e035
mov rbx, rax
test rax, rax
je 0x14004e032
mov eax, dword [rax + 0x28]
lea r8, [rbx + 0x7c]
lea rdx, [rbx + 0x2c]
mov dword [rbx + 0x18], eax
xor r9d, r9d
mov dword [rbx + 0x14], esi
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.14004bf60
test eax, eax
mov ecx, esi
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebp
jge 0x14004e08b
mov rbx, rax
test rax, rax
je 0x14004e086
cmp dword [rax + 0x1c], esi
je 0x14004e086
mov edx, dword [rax + 0x14]
inc edx
cmp edx, dword [rax + 8]
je 0x14004e086
mov ecx, dword [rax + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rax + 0x50]
xor r9d, r9d
mov eax, dword [rax + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], esi
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.14004bf60
test eax, eax
mov ecx, esi
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebp
jl 0x14004e037
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, rdi
call fcn.14004d5d0
test byte [rsp + 0x26c], 0x10
je 0x14004e0e0
cmp r15d, 1
je 0x14004e0d9
movzx eax, word [r14]
cmp ax, 0x2f
je 0x14004e0ce
cmp ax, 0x5c
je 0x14004e0ce
test ax, ax
je 0x14004e0c7
cmp word [r14 + 2], 0x3a
je 0x14004e0ce
lea rsi, [rdi + 0x250]
mov rdx, r14
mov rcx, rsi
call fcn.14004de10
xor eax, eax
jmp 0x14004e427
cmp r15d, 1
je 0x14004e225
movzx eax, word [r14]
mov r9, r14
mov rcx, r14
test ax, ax
je 0x14004e11d
nop dword [rax]
cmp ax, 0x2f
je 0x14004e10c
cmp ax, 0x5c
jne 0x14004e110
lea r9, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14004e100
lea rdx, [rsp + 0x290]
mov rcx, r14
sub rdx, r14
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14004e130
cmp r9, r14
jne 0x14004e14f
mov word [rsp + 0x290], si
jmp 0x14004e193
mov rax, r9
sub rax, r14
sar rax, 1
add rax, rax
cmp rax, 0x208
jae 0x14004e453
mov word [rsp + rax + 0x290], si
movzx eax, word [rsp + 0x290]
cmp ax, 0x2f
je 0x14004e1c1
cmp ax, 0x5c
je 0x14004e1c1
test ax, ax
je 0x14004e193
cmp word [rsp + 0x292], 0x3a
je 0x14004e1c1
mov qword [rsp + 0x20], r9
lea rbx, [rdi + 0x250]
mov r8, rbx
lea r9, [rsp + 0x290]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14004e1e1
lea r8, [rsp + 0x290]
lea rdx, [0x140137b40]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rbx, rsi
lea rdx, [rsp + 0x290]
mov rcx, rbx
call fcn.14004de10
mov eax, dword [rsp + 0x26c]
lea rcx, [rsp + 0x4a0]
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 0x14004e235
mov eax, 0x200
jmp 0x14004e427
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.14004c9a0
cmp qword [rdi + 0x248], rsi
jne 0x14004e260
mov ecx, 0x4000
call fcn.14009bed8
mov qword [rdi + 0x248], rax
nop
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.14004cbc0
mov ebx, eax
cmp eax, 0xffffff96
je 0x14004e2e4
test eax, eax
js 0x14004e2b3
jle 0x14004e2a8
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x54]
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e2ba
cmp byte [rsp + 0x50], sil
jne 0x14004e2c1
test ebx, ebx
jne 0x14004e260
mov esi, 0x5000000
jmp 0x14004e2e9
mov esi, 0x400
jmp 0x14004e2e9
lea r9, [rsp + 0x280]
mov rcx, r14
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x14004e2e9
mov esi, 0x1000
cmp r15d, 1
je 0x14004e2f8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.14004d060
mov eax, esi
jmp 0x14004e427
mov eax, dword [rcx + 8]
cmp ebp, eax
je 0x14004e3d9
cmp eax, 0xffffffff
je 0x14004e31f
mov rcx, qword [rcx]
call fcn.14004d060
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rcx + 8]
jl 0x14004e338
mov eax, 0x10000
jmp 0x14004e427
xor esi, esi
cmp dword [rcx + 0x14], ebp
jle 0x14004e374
mov rbx, rcx
test rcx, rcx
je 0x14004e371
mov eax, dword [rcx + 0x28]
lea r8, [rcx + 0x7c]
lea rdx, [rcx + 0x2c]
mov dword [rcx + 0x18], eax
xor r9d, r9d
mov dword [rcx + 0x14], esi
mov dword [rsp + 0x20], esi
call fcn.14004bf60
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rcx, qword [rdi]
cmp dword [rcx + 0x14], ebp
jge 0x14004e3ca
mov rbx, rcx
test rcx, rcx
je 0x14004e3c5
cmp dword [rcx + 0x1c], esi
je 0x14004e3c5
mov edx, dword [rcx + 0x14]
inc edx
cmp edx, dword [rcx + 8]
je 0x14004e3c5
mov ecx, dword [rcx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], esi
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.14004bf60
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rcx, qword [rdi]
cmp dword [rcx + 0x14], ebp
jl 0x14004e376
mov rdx, qword [rdi + 0x240]
call fcn.14004c9a0
mov dword [rdi + 8], ebp
mov rcx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, r12d
mov rdx, r14
call fcn.14004cbc0
mov ebx, eax
test eax, eax
jg 0x14004e401
mov rcx, qword [rdi]
call fcn.14004d060
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x50], 0
jne 0x14004e0d9
test ebx, ebx
jle 0x14004e417
mov eax, 0x600
jmp 0x14004e427
cmp ebx, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14009bfe8
int3