Function at 0x140050b90
Capabilities:
Check if file exists
Create directory
Delete file
Download url
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rbp + 0x630], rax
movzx esi, r9b
mov rdi, r8
mov qword [rsp + 0x58], r8
mov r15, rdx
mov qword [rsp + 0x48], rcx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x80], r8
lea rcx, [rbp - 0x10]
call fcn.14004caf0
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x520]
call fcn.14010f3d6
mov r8d, 0x104
lea rdx, [rbp + 0x520]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x520]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [rbp + 0x520]
lea rcx, [rbp - 0x30]
call fcn.140002e70
nop
lea rcx, [rbp - 0x30]
call fcn.1400508f0
cmp byte [rax], 0x5c
je 0x140050c50
mov dl, 0x5c
lea rcx, [rbp - 0x30]
call fcn.14004d550
lea rdx, str.symbols_
lea rcx, [rbp - 0x30]
call fcn.14004d570
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14004d360
lea rcx, [rbp - 0x10]
call fcn.1400048c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140050ca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140050ca5
lea rdx, [0x14011509e]
mov rcx, r15
call fcn.140002e70
jmp 0x14005135b
mov edx, 0x110
lea rcx, [rbp + 0xb0]
call fcn.140004700
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14004c630
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, rax
call fcn.14004d3b0
mov rbx, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov edx, 0x18
lea rcx, [rbp - 0x70]
call fcn.140004700
lea rcx, [rsp + 0x30]
call fcn.140001c40
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14004ce80
nop
lea rcx, [rbp - 0x70]
call fcn.1400027c0
mov rdx, rax
mov r8, rbx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x140051329
test rbx, rbx
je 0x140051329
lea rcx, [rbp - 0x70]
call fcn.1400027c0
mov rdx, rax
mov r8d, ebx
lea rcx, [rbp + 0x50]
call fcn.14004f180
nop
mov r8, rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x70]
call fcn.14004aa20
nop
lea r8, str..pdb
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14004a9f0
nop
lea rcx, [rbp + 0x70]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x50]
call fcn.1400034d0
lea r8, str..md5
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.14004aa50
nop
test sil, sil
jne 0x140050efc
lea rcx, [rbp - 0x50]
call fcn.1400048c0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140050efc
lea rcx, [rbp + 0x30]
call fcn.1400048c0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140050efc
mov edx, 0x110
lea rcx, [rbp + 0x1c0]
call fcn.140004700
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x1c0]
call fcn.14004c630
nop
lea rcx, [rbp + 0x50]
call fcn.14004caf0
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x1c0]
call fcn.14004a7c0
lea rcx, [rbp + 0x1c0]
call fcn.1400509e0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.140002e10
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14004f230
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.140001e60
test al, al
je 0x140050edc
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.14003ad40
lea rcx, [rbp + 0x70]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x50]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x1c0]
call fcn.14004d580
nop
lea rcx, [rbp + 0x30]
call fcn.1400034d0
nop
lea rcx, [rbp - 0x50]
call fcn.1400034d0
jmp 0x140051344
lea rcx, [rbp + 0x70]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x50]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x1c0]
call fcn.14004d580
lea rcx, [rbp - 0x70]
call fcn.1400027c0
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
xor r14d, r14d
mov dword [rsp + 0x34], r14d
movzx eax, word [rsi + 4]
mov ecx, 0x8664
cmp ax, cx
jne 0x140050f4d
lea rax, [rsi + 0xb8]
mov qword [rsp + 0x38], rax
lea rax, [rsi + 0x54]
mov qword [rsp + 0x40], rax
lea rcx, [rsi + 0x50]
mov ebx, 0x3c
mov eax, gethostname
mov r13d, 0x90
jmp 0x140050f8c
mov ecx, 0x14c
cmp ax, cx
jne 0x14005131f
mov r14d, 1
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x38], 0xa0
mov qword [rsp + 0x40], 0x3c
mov ecx, gethostname
lea r13, [rsi + 0xa8]
lea rbx, [rsi + 0x54]
lea rax, [rsi + 0x50]
test r14d, r14d
cmove rax, rcx
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
jne 0x140050fc2
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14011509e]
mov rcx, r15
call fcn.140002e70
jmp 0x140050ec4
test r14d, r14d
cmove rbx, qword [rsp + 0x40]
mov ebx, dword [rbx]
lea rcx, [rbp - 0x70]
call fcn.1400027c0
mov rdx, rax
mov r8d, ebx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rsi + 0x14]
add rax, 0x2c
xor r14d, r14d
cmp word [rsi + 6], r14w
je 0x14005103a
lea rdi, [rax + rsi]
nop word [rax + rax]
mov eax, dword [rdi - 4]
test eax, eax
je 0x140051025
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1400027c0
mov edx, dword [rdi]
add rdx, rax
mov ecx, dword [rdi - 8]
add rcx, r12
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rdi, 0x28
movzx eax, word [rsi + 6]
cmp r14d, eax
jne 0x140051000
mov rdi, qword [rsp + 0x58]
cmp dword [rsp + 0x34], 0
cmove r13, qword [rsp + 0x38]
mov eax, dword [r13]
cmp dword [r13 + 4], 0
je 0x140051316
cmp dword [rax + r12 + 0xc], 2
jne 0x140051316
mov esi, dword [rax + r12 + 0x14]
add rsi, r12
cmp dword [rsi], 0x53445352
jne 0x140051316
lea rcx, [rbp - 0x50]
call fcn.1400048c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x450]
call fcn.14010f3d6
lea rcx, [rsi + 4]
mov r8d, 0x64
lea rdx, [rbp + 0x450]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x140051316
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x3e0], xmm0
movups xmmword [rbp + 0x3f0], xmm0
movups xmmword [rbp + 0x400], xmm0
movups xmmword [rbp + 0x410], xmm0
movups xmmword [rbp + 0x420], xmm0
movups xmmword [rbp + 0x430], xmm0
mov dword [rbp + 0x440], eax
xor r14d, r14d
mov qword [rbp - 0x58], r14
mov r9d, 0x64
lea r8, [rbp + 0x450]
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp - 0x58]
call fcn.14004c5e0
test eax, eax
jne 0x140051316
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140051316
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1c0]
call fcn.14010f3d6
mov edx, r14d
mov eax, r14d
movzx ecx, byte [rbp + rax + 0x3e0]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14005115e
lea eax, [rcx - 0x41]
cmp al, 5
jbe 0x14005115e
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x140051181
lea r8, [rbp + 0x1c0]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp byte [r8 + rax], r14b
jne 0x140051170
mov byte [rbp + rax + 0x1c0], cl
inc edx
mov eax, edx
cmp rax, rbx
jne 0x140051141
xor eax, eax
mov word [rbp - 0x78], ax
mov byte [rbp - 0x76], al
mov r8d, 0xa
lea rdx, [rbp - 0x78]
mov ecx, dword [rsi + 0x14]
call fcn.14004c2c0
mov rdx, qword [rsp + 0x48]
add rdx, 0x38
lea rcx, [rbp + 0x10]
call fcn.140002e10
nop
lea rdx, [0x140121874]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [rsi + 0x18]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [0x140121874]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [0x140121874]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rdx, [rsi + 0x18]
lea rcx, [rbp + 0x10]
call fcn.14004d570
lea rcx, [rbp - 0x50]
call fcn.1400048c0
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.1400048c0
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
mov rcx, r12
test eax, eax
jns 0x140051274
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x14011509e]
mov rcx, r15
call fcn.140002e70
nop
lea rcx, [rbp + 0x10]
call fcn.1400034d0
jmp 0x140050ec4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.140002e10
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.14004f230
nop
mov edx, 0x108
lea rcx, [rbp + 0x2d0]
call fcn.140004700
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x2d0]
call fcn.14004c790
nop
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x2d0]
call fcn.14004a9a0
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.14003ad40
nop
lea rcx, [rbp + 0x2d0]
call fcn.14004d5b0
nop
lea rcx, [rbp + 0x90]
call fcn.1400034d0
nop
lea rcx, [rbp + 0x10]
call fcn.1400034d0
jmp 0x140050ec4
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 0x32
jmp 0x140050fa8
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14011509e]
mov rcx, r15
call fcn.140002e70
nop
lea rcx, [rbp - 0x70]
call fcn.14004d250
nop
lea rcx, [rbp + 0xb0]
call fcn.14004d580
nop
lea rcx, [rbp - 0x30]
call fcn.1400034d0
nop
lea rcx, [rbp - 0x10]
call fcn.1400034d0
nop
mov rcx, rdi
call fcn.1400034d0
mov rax, r15
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x798]
add rsp, 0x740
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret