Function at 0x1400038b0
Capabilities:
Check http status code
Create directory
Delete file
Get common file path
Get file size
Print debug messages
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x5120
call fcn.140021bf0
sub rsp, rax
mov rax, qword [0x140031010]
xor rax, rsp
mov qword [rsp + 0x5110], rax
mov qword [rsp + 0xc8], r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0xc0], rcx
xor edi, edi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x68], rdi
mov r13d, edi
mov qword [rsp + 0x98], rdi
or r12, 0xffffffffffffffff
mov qword [rsp + 0x58], r12
mov esi, edi
mov dword [rsp + 0x7c], edi
xor ecx, ecx
mov dword [rsp + 0x150], ecx
mov byte [rsp + 0x154], cl
movsx r9d, byte [r8]
lea r8, str.__c:_
lea edx, [rdi + 5]
lea rcx, [rsp + 0x150]
call fcn.140003794
lea rax, [rsp + 0x178]
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x150]
call fcn.14000e7b0
lea r14d, [rax + 1]
lea r8, [rsp + 0x178]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.140004a9c
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rsp + 0x150]
xor edx, edx
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
sete dil
test eax, eax
jne 0x140003a2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003a2a
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rsp + 0x150]
xor edx, edx
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea r8, [rsp + 0x178]
mov edx, eax
lea rcx, [rsp + 0x170]
call fcn.140004a9c
mov dword [rsp + 0x28], edi
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rsp + 0x150]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r14d, r14d
mov edi, r14d
test eax, eax
sete dil
jmp 0x140003a2d
xor r14d, r14d
test edi, edi
jne 0x14000485d
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x178]
cmp rax, rcx
je 0x140003a5a
mov rcx, rax
call fcn.14000e858
mov rcx, rbx
call fcn.140004878
test eax, eax
jne 0x140003a8e
mov eax, 0x80004001
mov rcx, qword [rsp + 0x5110]
xor rcx, rsp
call fcn.140009960
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rbx], r14d
je 0x140003ab2
lea r8, str.SaaSbeeTestMode00123578
lea rdx, str.srid
mov rcx, r15
mov rax, qword [rbx + 0x68]
mov rdi, qword [0x140023570]
call rdi
nop
lea rdx, str.file:__
mov rcx, r15
call fcn.14000be08
test rax, rax
je 0x140003ae1
mov esi, 1
mov dword [rsp + 0x54], esi
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
jmp 0x1400047ac
cmp dword [rsp + 0x5180], r14d
je 0x140003b06
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 8]
mov rax, qword [rax]
mov rdi, qword [0x140023570]
call rdi
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Zoom.Launcher.Win
mov rax, qword [rbx + 0x80]
mov rdi, qword [0x140023570]
call rdi
mov r14, rax
mov qword [rsp + 0x80], rax
xor r12d, r12d
xor edx, edx
test rax, rax
jne 0x140003b94
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r12d, 0x100
mov r8d, r12d
lea rcx, [rsp + 0x970]
call fcn.14000b3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.InternetOpen_API_failed__error_code:__d
mov r9d, eax
mov rdx, r12
lea rcx, [rsp + 0x970]
call fcn.140003740
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x68]
jmp 0x1400047a7
mov edi, 0x68
mov r8d, edi
lea rcx, [rsp + 0xe0]
call fcn.14000b3c0
mov dword [rsp + 0xe0], edi
lea rax, [rsp + 0x2910]
mov qword [rsp + 0xf8], rax
mov ecx, 0x800
mov dword [rsp + 0x100], ecx
mov word [rsp + 0x104], r12w
lea rax, [rsp + 0x3110]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], ecx
lea rax, [rsp + 0x3910]
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x140], ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov rcx, r15
mov rax, qword [rbx + 0x48]
mov rdi, qword [0x140023570]
call rdi
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 3
lea rax, [0x14002bd7d]
mov qword [rsp + 0x20], rax
mov r9, rax
movzx r8d, word [rsp + 0x104]
mov rdx, qword [rsp + 0xf8]
mov rcx, r14
mov rax, qword [rbx + 0x40]
mov rdi, qword [0x140023570]
call rdi
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140003ccd
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000b3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.InternetConnect_API_failed__error_code:__d
mov edx, r12d
lea rcx, [rsp + 0x970]
call fcn.140003740
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400047a7
lea rcx, [rsp + 0x4110]
cmp dword [rsp + 0x130], r15d
mov rdx, qword [rsp + 0x128]
jne 0x140003cee
lea rdx, [0x14002be4c]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [rsp + 0x140], r15d
je 0x140003d14
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x4110]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x88], r15d
mov dword [rsp + 0x94], 0x3c
mov r12d, 0x100
mov dword [rsp + 0x50], r15d
mov edx, 0x1bb
mov ecx, 0x84401000
mov eax, 0x84c01000
cmp word [rsp + 0x104], dx
cmove ecx, eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea rax, [0x14002bd7d]
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
lea r8, [rsp + 0x4110]
lea rdx, [0x14002be5c]
mov rcx, rdi
mov rax, qword [rbx + 0x58]
mov rdi, qword [0x140023570]
call rdi
mov r13, rax
mov qword [rsp + 0x98], rax
xor eax, eax
test r13, r13
jne 0x140003dd0
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000b3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.HttpOpenRequest_API_failed__error_code:__d
jmp 0x140003b69
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140003eab
xor r15d, r15d
cmp dword [rsp + 0x5180], r15d
je 0x140003e55
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
mov rdx, qword [rsp + 0xa8]
mov rdi, qword [0x140023570]
call rdi
cmp eax, 4
jne 0x140003e55
mov dword [rsp + 0x50], 1
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
jmp 0x140003d32
mov esi, 1
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000b3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateFile_API_failed__error_code:__d
mov r9d, eax
mov rdx, r12
lea rcx, [rsp + 0x970]
call fcn.140003740
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r14, qword [rsp + 0x80]
jmp 0x140003b8a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor eax, eax
mov dword [rsp + 0xd0], eax
lea r14d, [rax + 1]
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov rax, qword [rbx + 0x78]
mov rdi, qword [0x140023570]
call rdi
xor edi, edi
test eax, eax
jne 0x140003fda
test r14d, r14d
je 0x140003fdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x140003f68
sub ecx, 5
je 0x140003f68
sub ecx, 7
je 0x140003f25
sub ecx, 0xf
je 0x140003f68
sub ecx, 8
je 0x140003f25
sub ecx, 1
je 0x140003f25
sub ecx, 1
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x5180], eax
je 0x140003fd5
mov qword [rsp + 0x20], rax
lea r9d, [rax + 7]
mov r8d, edi
mov rdx, r13
xor ecx, ecx
mov rax, qword [rbx + 0x60]
mov rdi, qword [0x140023570]
call rdi
test eax, eax
jne 0x140003fd3
lea r14d, [rax + 1]
mov dword [rsp + 0x60], r14d
jmp 0x140003fd3
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x5180], eax
je 0x140003fd5
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
mov rdx, qword [0x140023570]
call rdx
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rdx, qword [0x140023570]
cmp edi, 0x2ee2
jne 0x140003faa
mov rax, qword [rax + 0x10]
jmp 0x140003fae
mov rax, qword [rax + 0x18]
call rdx
mov dword [rsp + 0x50], eax
mov r15d, eax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
mov rdx, qword [0x140023570]
call rdx
mov r14d, r15d
mov dword [rsp + 0x60], r15d
xor eax, eax
jmp 0x140003ec8
test r14d, r14d
jne 0x14000400c
mov esi, 1
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000b3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.HttpSendRequest_API_failed__error_code:__d
jmp 0x140003e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x8c], 4
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x8c]
lea r8, [rsp + 0x74]
mov edx, 0x20000013
mov rcx, r13
mov rax, qword [rbx + 0x38]
mov rdi, qword [0x140023570]
call rdi
test eax, eax
jne 0x140004052
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, 1
mov dword [rsp + 0x60], r14d
mov edi, dword [rsp + 0x74]
cmp edi, 0x197
je 0x140004075
cmp edi, 0x191
jne 0x140004110
test r14d, r14d
je 0x140004110
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
and qword [rsp + 0x20], 0
mov r9d, 7
mov r8d, 0x2eee
mov rdx, r13
mov rax, qword [rbx + 0x60]
mov rdi, qword [0x140023570]
call rdi
cmp eax, 0x4c7
jne 0x1400040bb
xor ecx, ecx
mov r14d, ecx
mov dword [rsp + 0x60], ecx
jmp 0x14000410b
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov rax, qword [rbx + 0x78]
mov rdi, qword [0x140023570]
call rdi
mov dword [rsp + 0x8c], 4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x8c]
lea r8, [rsp + 0x74]
mov edx, 0x20000013
mov rcx, r13
mov rax, qword [rbx + 0x38]
mov rdi, qword [0x140023570]
call rdi
jmp 0x14000405d
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x570]
call fcn.14000b3c0
mov r9d, edi
lea r8, str.HttpQueryInfo_status:__d
mov rdx, r12
lea rcx, [rsp + 0x570]
call fcn.140003740
lea rcx, [rsp + 0x570]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, dword [rsp + 0x74]
cmp r9d, 0xc8
je 0x140004567
cmp r9d, 0xce
je 0x140004567
cmp r9d, 0x193
jne 0x1400043f0
xor r15d, r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0xa8], 4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x70]
mov edx, 0x20000005
mov rcx, r13
mov rax, qword [rbx + 0x38]
mov rdi, qword [0x140023570]
call rdi
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400043b9
lea ecx, [rax + 5]
call fcn.140009ca4
mov rsi, rax
mov ecx, dword [rsp + 0x70]
mov byte [rcx + rax], r15b
mov dword [rsp + 0x90], r15d
lea r9, [rsp + 0x90]
mov r8d, dword [rsp + 0x70]
mov rdx, rax
mov rcx, r13
mov rax, qword [rbx + 0x50]
mov rdi, qword [0x140023570]
call rdi
mov eax, dword [rsp + 0x90]
cmp eax, dword [rsp + 0x70]
jne 0x1400043b1
lea rdi, [rsp + 0x158]
xor eax, eax
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [r15 + 0x2f]
mov rcx, qword [rbx + 0x10]
call fcn.14000c004
mov rdi, rax
test rax, rax
jne 0x140004249
lea edx, [rax + 0x5c]
mov rcx, qword [rbx + 0x10]
call fcn.14000c004
mov rdi, rax
mov r14d, 0x400
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x570]
call fcn.14000b3c0
lea rax, [rdi + 1]
lea r10, str.NULL
test rdi, rdi
cmovne r10, rax
movzx r8d, word [rsp + 0x164]
movzx edi, word [rsp + 0x162]
movzx edx, word [rsp + 0x160]
movzx ecx, word [rsp + 0x15e]
movzx eax, word [rsp + 0x15a]
movzx r9d, word [rsp + 0x158]
mov qword [rsp + 0x48], r10
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea r8, str.launcher_downloader_403___d__d__d___d__d__d___s.log
lea edx, [r14 - 0x18]
lea rcx, [rsp + 0x570]
call fcn.140003740
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.14000b3c0
xor r9d, r9d
lea r8d, [r9 + 0x1a]
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1400043b1
lea r8, [0x14002a588]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000ef78
lea r8, [0x14002a5a0]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000ef78
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x14002a588]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000ef78
lea r8, [rsp + 0x570]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000ef78
lea rdx, [0x14002bf44]
lea rcx, [rsp + 0x170]
call fcn.14000f694
mov rdi, rax
test rax, rax
je 0x1400043b1
mov r8d, dword [rsp + 0x90]
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140012678
mov rcx, rdi
call fcn.14000f7c4
mov rcx, rsi
call fcn.1400099bc
cmp dword [rsp + 0x5180], r15d
je 0x1400043e2
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002bf48]
mov rax, qword [rax + 0x28]
mov rdi, qword [0x140023570]
call rdi
mov dword [rsp + 0x50], eax
mov esi, 1
mov dword [rsp + 0x54], esi
jmp 0x140003e9e
lea eax, [r9 - 0x190]
cmp eax, 0xc7
ja 0x14000450a
cmp r9d, 0x1f4
jne 0x140004445
cmp dword [rsp + 0x5180], 0
je 0x140004437
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002bf50]
mov rax, qword [rax + 0x30]
mov rdi, qword [0x140023570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
mov esi, 1
mov dword [rsp + 0x54], esi
jmp 0x14000454f
cmp r9d, 0x1f7
jne 0x14000450a
cmp dword [rsp + 0x88], 5
jge 0x1400044bd
mov r14d, dword [rsp + 0x94]
mov edi, r14d
mov dword [rsp + 0xb0], r14d
xor r15d, r15d
test edi, edi
js 0x1400044a5
cmp dword [rsp + 0x5180], r15d
je 0x14000448f
lea rdx, str.Retry
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
dec edi
mov dword [rsp + 0xb0], edi
jmp 0x140004472
inc dword [rsp + 0x88]
add r14d, 0x1e
mov dword [rsp + 0x94], r14d
jmp 0x140003e3b
xor edi, edi
cmp dword [rsp + 0x5180], edi
je 0x140004551
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002bf60]
mov rax, qword [rax + 0x38]
mov rdi, qword [0x140023570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
xor edi, edi
test eax, eax
je 0x140004551
mov dword [rsp + 0x88], edi
lea eax, [rdi + 0x3c]
mov dword [rsp + 0x94], eax
jmp 0x14000478b
xor edi, edi
cmp dword [rsp + 0x5180], edi
je 0x140004551
lea r8, [0x14002bf68]
lea edx, [rdi + 0xa]
lea rcx, [rsp + 0x158]
call fcn.1400036e8
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [rsp + 0x158]
mov rax, qword [rax + 0x30]
mov rdi, qword [0x140023570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
xor edi, edi
test r15d, r15d
jne 0x14000475c
lea esi, [r15 + 1]
mov dword [rsp + 0x54], esi
jmp 0x14000475c
xor eax, eax
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0xb4], 4
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb4]
lea r8, [rsp + 0x7c]
mov edx, 0x20000005
mov rcx, r13
mov rax, qword [rbx + 0x38]
mov rdi, qword [0x140023570]
call rdi
mov eax, dword [rsp + 0x7c]
mov ecx, 0xe4e1c0
xor edi, edi
test eax, eax
cmove eax, ecx
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x78], edi
mov r13d, edi
mov dword [rsp + 0xbc], edi
mov r14d, edi
mov dword [rsp + 0xa0], edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
cmp dword [rsp + 0x74], 0xce
jne 0x1400045eb
lea r9d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400045ff
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x78], edi
lea r9, [rsp + 0x78]
mov r8d, 0x1fa0
lea rdx, [rsp + 0x970]
mov rcx, qword [rsp + 0x98]
mov rax, qword [rbx + 0x50]
mov rdi, qword [0x140023570]
call rdi
xor edi, edi
test eax, eax
je 0x14000472b
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x1400046bb
mov dword [rsp + 0xb8], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb8]
mov r8d, edx
lea rdx, [rsp + 0x970]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400046bb
cmp dword [rsp + 0x5180], edi
je 0x1400046f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x20]
mov rdi, qword [rcx]
mov rdx, qword [rsp + 0xa8]
cmp eax, 0x70
jne 0x140004698
mov rax, qword [rdi + 0x20]
jmp 0x14000469c
mov rax, qword [rdi + 8]
mov rdi, qword [0x140023570]
call rdi
mov dword [rsp + 0x50], eax
mov r15d, eax
xor edi, edi
test eax, eax
jne 0x1400046f8
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
jmp 0x140004739
mov edx, dword [rsp + 0x78]
add r13d, edx
mov dword [rsp + 0xbc], r13d
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
mov rdi, qword [0x140023570]
call rdi
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
mov rdx, qword [0x140023570]
call rdx
xor edi, edi
test eax, eax
jne 0x140004703
cmp dword [rsp + 0x78], edi
je 0x140004739
jmp 0x1400045ff
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov r8d, r13d
mov edx, dword [rsp + 0x7c]
mov rax, qword [rax + 0x68]
mov rdi, qword [0x140023570]
call rdi
mov dword [rsp + 0xa0], 1
jmp 0x14000473e
mov r14d, 1
mov dword [rsp + 0xa0], r14d
test r14d, r14d
je 0x140004754
mov esi, 1
mov dword [rsp + 0x54], esi
mov r13, qword [rsp + 0x98]
jmp 0x140003e9e
mov r13, qword [rsp + 0x98]
mov rcx, r13
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140023570]
call rdx
mov r13, rdi
mov qword [rsp + 0x98], rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x58], 0xffffffffffffffff
test r15d, r15d
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov r15d, 0
jne 0x140003d32
mov r12, qword [rsp + 0x58]
test r13, r13
je 0x1400047c4
mov rcx, r13
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140023570]
call rdx
test rdi, rdi
je 0x1400047dc
mov rcx, rdi
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140023570]
call rdx
test r14, r14
je 0x1400047f4
mov rcx, r14
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140023570]
call rdx
cmp r12, 0xffffffffffffffff
je 0x140004803
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x14000482a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140004823
mov rax, qword [rcx]
lea edx, [rsi + 1]
mov rax, qword [rax + 0x70]
mov rdi, qword [0x140023570]
call rdi
xor eax, eax
jmp 0x140003a6b
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140004853
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x70]
mov rdi, qword [0x140023570]
call rdi
mov eax, 0x80004005
jmp 0x140003a6b
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140004a88
call fcn.1400037ec
nop