Function at 0x1400038f0
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.1400212c0
sub rsp, rax
mov rax, qword [0x140030010]
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.1400037d4
lea rax, [rsp + 0x178]
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x150]
call fcn.14000e090
lea r14d, [rax + 1]
lea r8, [rsp + 0x178]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.140004adc
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 0x140003a6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003a6a
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.140004adc
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 0x140003a6d
xor r14d, r14d
test edi, edi
jne 0x14000489d
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x178]
cmp rax, rcx
je 0x140003a9a
mov rcx, rax
call fcn.14000e138
mov rcx, rbx
call fcn.1400048b8
test eax, eax
jne 0x140003ace
mov eax, 0x80004001
mov rcx, qword [rsp + 0x5110]
xor rcx, rsp
call fcn.140009240
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rbx], r14d
je 0x140003af2
lea r8, str.SaaSbeeTestMode00123578
lea rdx, str.srid
mov rcx, r15
mov rax, qword [rbx + 0x68]
mov rdi, qword [0x140022570]
call rdi
nop
lea rdx, str.file:__
mov rcx, r15
call fcn.14000b6e8
test rax, rax
je 0x140003b21
mov esi, 1
mov dword [rsp + 0x54], esi
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
jmp 0x1400047ec
cmp dword [rsp + 0x5180], r14d
je 0x140003b46
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 [0x140022570]
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 [0x140022570]
call rdi
mov r14, rax
mov qword [rsp + 0x80], rax
xor r12d, r12d
xor edx, edx
test rax, rax
jne 0x140003bd4
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r12d, 0x100
mov r8d, r12d
lea rcx, [rsp + 0x970]
call fcn.14000aca0
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.140003780
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x68]
jmp 0x1400047e7
mov edi, 0x68
mov r8d, edi
lea rcx, [rsp + 0xe0]
call fcn.14000aca0
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 [0x140022570]
call rdi
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 3
lea rax, [0x14002ad7d]
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 [0x140022570]
call rdi
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140003d0d
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000aca0
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.140003780
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400047e7
lea rcx, [rsp + 0x4110]
cmp dword [rsp + 0x130], r15d
mov rdx, qword [rsp + 0x128]
jne 0x140003d2e
lea rdx, [0x14002ae4c]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [rsp + 0x140], r15d
je 0x140003d54
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, [0x14002ad7d]
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
lea r8, [rsp + 0x4110]
lea rdx, [0x14002ae5c]
mov rcx, rdi
mov rax, qword [rbx + 0x58]
mov rdi, qword [0x140022570]
call rdi
mov r13, rax
mov qword [rsp + 0x98], rax
xor eax, eax
test r13, r13
jne 0x140003e10
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000aca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.HttpOpenRequest_API_failed__error_code:__d
jmp 0x140003ba9
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 0x140003eeb
xor r15d, r15d
cmp dword [rsp + 0x5180], r15d
je 0x140003e95
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
mov rdx, qword [rsp + 0xa8]
mov rdi, qword [0x140022570]
call rdi
cmp eax, 4
jne 0x140003e95
mov dword [rsp + 0x50], 1
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
jmp 0x140003d72
mov esi, 1
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000aca0
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.140003780
lea rcx, [rsp + 0x970]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r14, qword [rsp + 0x80]
jmp 0x140003bca
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 [0x140022570]
call rdi
xor edi, edi
test eax, eax
jne 0x14000401a
test r14d, r14d
je 0x14000401f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x140003fa8
sub ecx, 5
je 0x140003fa8
sub ecx, 7
je 0x140003f65
sub ecx, 0xf
je 0x140003fa8
sub ecx, 8
je 0x140003f65
sub ecx, 1
je 0x140003f65
sub ecx, 1
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x5180], eax
je 0x140004015
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 [0x140022570]
call rdi
test eax, eax
jne 0x140004013
lea r14d, [rax + 1]
mov dword [rsp + 0x60], r14d
jmp 0x140004013
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x5180], eax
je 0x140004015
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
mov rdx, qword [0x140022570]
call rdx
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rdx, qword [0x140022570]
cmp edi, 0x2ee2
jne 0x140003fea
mov rax, qword [rax + 0x10]
jmp 0x140003fee
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 [0x140022570]
call rdx
mov r14d, r15d
mov dword [rsp + 0x60], r15d
xor eax, eax
jmp 0x140003f08
test r14d, r14d
jne 0x14000404c
mov esi, 1
mov dword [rsp + 0x54], esi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x970]
call fcn.14000aca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.HttpSendRequest_API_failed__error_code:__d
jmp 0x140003ebd
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 [0x140022570]
call rdi
test eax, eax
jne 0x140004092
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, 1
mov dword [rsp + 0x60], r14d
mov edi, dword [rsp + 0x74]
cmp edi, 0x197
je 0x1400040b5
cmp edi, 0x191
jne 0x140004150
test r14d, r14d
je 0x140004150
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 [0x140022570]
call rdi
cmp eax, 0x4c7
jne 0x1400040fb
xor ecx, ecx
mov r14d, ecx
mov dword [rsp + 0x60], ecx
jmp 0x14000414b
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 [0x140022570]
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 [0x140022570]
call rdi
jmp 0x14000409d
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x570]
call fcn.14000aca0
mov r9d, edi
lea r8, str.HttpQueryInfo_status:__d
mov rdx, r12
lea rcx, [rsp + 0x570]
call fcn.140003780
lea rcx, [rsp + 0x570]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, dword [rsp + 0x74]
cmp r9d, 0xc8
je 0x1400045a7
cmp r9d, 0xce
je 0x1400045a7
cmp r9d, 0x193
jne 0x140004430
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 [0x140022570]
call rdi
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400043f9
lea ecx, [rax + 5]
call fcn.140009584
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 [0x140022570]
call rdi
mov eax, dword [rsp + 0x90]
cmp eax, dword [rsp + 0x70]
jne 0x1400043f1
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.14000b8e4
mov rdi, rax
test rax, rax
jne 0x140004289
lea edx, [rax + 0x5c]
mov rcx, qword [rbx + 0x10]
call fcn.14000b8e4
mov rdi, rax
mov r14d, 0x400
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x570]
call fcn.14000aca0
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.140003780
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.14000aca0
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 0x1400043f1
lea r8, [0x140029588]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000e858
lea r8, [0x1400295a0]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000e858
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x140029588]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000e858
lea r8, [rsp + 0x570]
mov edx, r14d
lea rcx, [rsp + 0x170]
call fcn.14000e858
lea rdx, [0x14002af44]
lea rcx, [rsp + 0x170]
call fcn.14000ef74
mov rdi, rax
test rax, rax
je 0x1400043f1
mov r8d, dword [rsp + 0x90]
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140011f58
mov rcx, rdi
call fcn.14000f0a4
mov rcx, rsi
call fcn.14000929c
cmp dword [rsp + 0x5180], r15d
je 0x140004422
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002af48]
mov rax, qword [rax + 0x28]
mov rdi, qword [0x140022570]
call rdi
mov dword [rsp + 0x50], eax
mov esi, 1
mov dword [rsp + 0x54], esi
jmp 0x140003ede
lea eax, [r9 - 0x190]
cmp eax, 0xc7
ja 0x14000454a
cmp r9d, 0x1f4
jne 0x140004485
cmp dword [rsp + 0x5180], 0
je 0x140004477
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002af50]
mov rax, qword [rax + 0x30]
mov rdi, qword [0x140022570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
mov esi, 1
mov dword [rsp + 0x54], esi
jmp 0x14000458f
cmp r9d, 0x1f7
jne 0x14000454a
cmp dword [rsp + 0x88], 5
jge 0x1400044fd
mov r14d, dword [rsp + 0x94]
mov edi, r14d
mov dword [rsp + 0xb0], r14d
xor r15d, r15d
test edi, edi
js 0x1400044e5
cmp dword [rsp + 0x5180], r15d
je 0x1400044cf
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 0x1400044b2
inc dword [rsp + 0x88]
add r14d, 0x1e
mov dword [rsp + 0x94], r14d
jmp 0x140003e7b
xor edi, edi
cmp dword [rsp + 0x5180], edi
je 0x140004591
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [0x14002af60]
mov rax, qword [rax + 0x38]
mov rdi, qword [0x140022570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
xor edi, edi
test eax, eax
je 0x140004591
mov dword [rsp + 0x88], edi
lea eax, [rdi + 0x3c]
mov dword [rsp + 0x94], eax
jmp 0x1400047cb
xor edi, edi
cmp dword [rsp + 0x5180], edi
je 0x140004591
lea r8, [0x14002af68]
lea edx, [rdi + 0xa]
lea rcx, [rsp + 0x158]
call fcn.140003728
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [rsp + 0x158]
mov rax, qword [rax + 0x30]
mov rdi, qword [0x140022570]
call rdi
mov r15d, eax
mov dword [rsp + 0x50], eax
xor edi, edi
test r15d, r15d
jne 0x14000479c
lea esi, [r15 + 1]
mov dword [rsp + 0x54], esi
jmp 0x14000479c
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 [0x140022570]
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 0x14000462b
lea r9d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14000463f
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 [0x140022570]
call rdi
xor edi, edi
test eax, eax
je 0x14000476b
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x1400046fb
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 0x1400046fb
cmp dword [rsp + 0x5180], edi
je 0x140004738
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 0x1400046d8
mov rax, qword [rdi + 0x20]
jmp 0x1400046dc
mov rax, qword [rdi + 8]
mov rdi, qword [0x140022570]
call rdi
mov dword [rsp + 0x50], eax
mov r15d, eax
xor edi, edi
test eax, eax
jne 0x140004738
lea esi, [rax + 1]
mov dword [rsp + 0x54], esi
jmp 0x140004779
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 [0x140022570]
call rdi
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
mov rdx, qword [0x140022570]
call rdx
xor edi, edi
test eax, eax
jne 0x140004743
cmp dword [rsp + 0x78], edi
je 0x140004779
jmp 0x14000463f
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 [0x140022570]
call rdi
mov dword [rsp + 0xa0], 1
jmp 0x14000477e
mov r14d, 1
mov dword [rsp + 0xa0], r14d
test r14d, r14d
je 0x140004794
mov esi, 1
mov dword [rsp + 0x54], esi
mov r13, qword [rsp + 0x98]
jmp 0x140003ede
mov r13, qword [rsp + 0x98]
mov rcx, r13
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140022570]
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 0x140003d72
mov r12, qword [rsp + 0x58]
test r13, r13
je 0x140004804
mov rcx, r13
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140022570]
call rdx
test rdi, rdi
je 0x14000481c
mov rcx, rdi
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140022570]
call rdx
test r14, r14
je 0x140004834
mov rcx, r14
mov rax, qword [rbx + 0x88]
mov rdx, qword [0x140022570]
call rdx
cmp r12, 0xffffffffffffffff
je 0x140004843
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x14000486a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140004863
mov rax, qword [rcx]
lea edx, [rsi + 1]
mov rax, qword [rax + 0x70]
mov rdi, qword [0x140022570]
call rdi
xor eax, eax
jmp 0x140003aab
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140004893
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x70]
mov rdi, qword [0x140022570]
call rdi
mov eax, 0x80004005
jmp 0x140003aab
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140004ac8
call fcn.14000382c
nop