Function at 0x140083350
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11b0
call fcn.140101360
sub rsp, rax
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x11a0], rax
movzx eax, word [0x140138330]
mov word [rsp + 0x1a0], ax
lea rax, [rsp + 0x1a2]
mov rdi, rax
xor eax, eax
mov ecx, 0xffe
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, dword [rsp + 0x78]
mov r9d, ecx
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x7c], eax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x1a0]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x80]
mov r9d, ecx
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0xffffffff
jne 0x14008355c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x88]
jmp 0x140083a0e
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140083592
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140083592
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x44], 0
jne 0x1400835d2
mov dword [rsp + 0x8c], 0
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x8c]
jmp 0x140083a0e
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0xf8]
call fcn.14000bc70
nop
mov qword [rsp + 0x50], 0
lea rdx, [0x1401383b0]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140083919
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
nop
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov ecx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov qword [rsp + 0xa0], rax
mov rdi, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, 1
mov edx, ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread_s]
mov dword [rsp + 0x94], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xf8]
call fcn.140001ed0
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x58], 0
xor r8d, r8d
lea rdx, str.http:__maps.googleapis.com_maps_api_js_v3.expkey
lea rcx, [rsp + 0xf8]
call fcn.140083a30
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x58], getservbyname
movsxd rax, dword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400838ec
xor r8d, r8d
lea rdx, str.language
lea rcx, [rsp + 0xf8]
call fcn.140083a30
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
cmp rax, 0xffffffffffffffff
je 0x1400838ec
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x5c], eax
jle 0x1400838ec
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xa8], rax
lea rcx, [0x1405fda48]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
lea rcx, [0x1405fda48]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400053e0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x118]
call fcn.140007d00
nop
mov edx, 0xffffffff
lea rcx, [0x1405fda48]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0x58]
cdqe
mov ecx, dword [rsp + 0x58]
mov edx, dword [rsp + 0x48]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0xf8]
call fcn.1400332f0
nop
lea rcx, [rsp + 0x118]
call fcn.140001eb0
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x178]
call fcn.140001eb0
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400838d0
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
cdqe
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0xf8]
call fcn.1400332f0
nop
movsxd rax, dword [rsp + 0x5c]
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xf8]
call fcn.1400332f0
nop
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0xf8]
call fcn.140020850
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xf8]
call fcn.140020820
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xf8]
call fcn.140020820
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x138]
call fcn.140001f00
nop
lea rcx, [rsp + 0x158]
call fcn.140001f00
nop
lea rcx, [rsp + 0x178]
call fcn.140001f00
nop
lea rcx, [rsp + 0x118]
call fcn.140001f00
nop
cmp qword [rsp + 0x70], 0
je 0x140083919
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.mfc140u.dll_operator]
nop
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x50], 0
je 0x140083935
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x1400839e0
lea rdx, [0x1401383ac]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400839e0
mov byte [rsp + 0x60], 0xef
mov byte [rsp + 0x61], 0xbb
mov byte [rsp + 0x62], 0xbf
mov byte [rsp + 0x63], 0
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov edx, 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rcx, [rsp + 0xf8]
call fcn.140001ea0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xf8]
call fcn.140001eb0
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov rcx, qword [rsp + 0xd0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov dword [rsp + 0x90], 1
lea rcx, [rsp + 0xf8]
call fcn.140001f00
nop
mov rcx, qword [rsp + 0x11c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x11a0]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x11b0
pop rdi
ret