Function at 0x1007f0f0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f968
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1009d350]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov eax, dword [0x1009d2a8]
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.1007f550
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.1007f550
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.1007f650
mov byte [ebp - 4], 4
push dword [edi]
push dword [esi]
push dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebx + 0x978]
push str.__id_:__s___syncGUID_:__s___location_:_winreg_app_global___version_:_1.0.0___type_:_extension___internalName_:null__updateURL_:null__updateKey_:null__optionsURL_:null__optionsType_:null__aboutURL_:null__iconURL_:null__icon64URL_:null__defaultLocale_:_name_:_BrowserSafer___description_:_BrowserSafer___creator_:_Company___homepageURL_:null__visible_:true__active_:true__userDisabled_:false__appDisabled_:false__descriptor_:__s___installDate_:1443521394204__updateDate_:1443521394204__applyBackgroundUpdates_:1__bootstrap_:true__size_:2802__sourceURI_:null__releaseNotesURI_:null__softDisabled_:false__foreignInstall_:true__hasBinaryComponents_:false__strictCompatibility_:false__locales_:____targetApplications_:__id_:__s___minVersion_:_38.0a1___maxVersion_:_39.0___id_:__s___minVersion_:_38.0a1___maxVersion_:_39.0____targetPlatforms_:____multiprocessCompatible_:false__signedState_:0_
push eax
call fcn.10009163
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or edi, 0xffffffff
add esp, 0x1c
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1007f1a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f1c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f1e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov edx, eax
mov ecx, 1
jl 0x1007f211
cmp edx, dword [esi - 0x10]
jne 0x1007f211
lea ebx, [esi - 0x10]
mov eax, ecx
lea edx, [esi - 4]
lock xadd dword [edx], eax
jmp 0x1007f245
mov eax, dword [edx]
push 1
push dword [esi - 0xc]
mov ecx, edx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x1007f227
call fcn.10008235
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov ecx, dword [esi - 0xc]
inc ecx
push ecx
push esi
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.1004d8fb
add esp, 0x10
mov ecx, 1
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1007f26e
push 0x104
lea ecx, [ebp - 0x18]
call fcn.10008240
mov esi, dword [ebp - 0x18]
push str.extensions.json
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [esi - 8]
push esi
call fcn.1004cc03
add esp, 8
test eax, eax
js 0x1007f537
cmp eax, dword [esi - 8]
jg 0x1007f537
push 0
push 0
push 3
push 0
push 0
push accept
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1007f2fd
push 0
push ebx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.1004b5a0
add esp, 4
lea ecx, [ebp - 0x20]
push 0
push ecx
push edi
push eax
push ebx
mov dword [ebp - 0x1c], eax
mov byte [eax + edi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1007f36f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f31a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f33a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1007f35b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x1009d2a8]
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x1009231d
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x1007f3ac
movzx edi, ax
mov ecx, edi
call fcn.100017b9
test eax, eax
je 0x1007f3bb
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.10007221
jmp 0x1007f3bb
push 0
push 0x1009231d
lea ecx, [ebp - 0x10]
call fcn.100081be
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x1c]
push edi
lea eax, [ebp - 0x10]
push 0x10092414
push eax
call fcn.10009163
add esp, 0xc
push edi
call fcn.1004bbd5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jl 0x1007f42a
push 0x1009778c
push edi
call fcn.1004c95d
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1007f42a
sub ecx, edi
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x1007f42a
lea eax, [ecx + 3]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.100108c0
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.100167d0
mov edi, dword [ebp - 0x10]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi - 0xc]
push 0
lea edx, [ebp - 0x24]
push edx
push ecx
push edi
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1007f4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea edx, [ebp - 0x28]
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x1009d2a8]
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0x10092414
push eax
call fcn.10009163
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f4d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f4f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f516
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1007f33a
mov ecx, dword [ebx]
push ebx
jmp 0x1007f335
push 0x80070057
call fcn.100016d9
int3