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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.10087830
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10087830
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.100878e0
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.10004b70
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x1c
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10087509
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, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10087529
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10087549
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
sub eax, 0x10
push eax
call fcn.10004f20
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10087589
push 0x104
lea ecx, [ebp - 0x18]
call fcn.10005090
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.1005972b
add esp, 8
test eax, eax
js 0x10087818
cmp eax, dword [esi - 8]
jg 0x10087818
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 dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x10087619
push 0
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.10056012
add esp, 4
lea ecx, [ebp - 0x28]
push 0
push ecx
push edi
mov byte [eax + edi], 0
mov edi, dword [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008768b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10087636
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, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10087656
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], ebx
dec ebx
test ebx, ebx
jg 0x10087677
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
push 0x1009e38a
lea ecx, [ebp - 0x10]
call fcn.10003f00
mov byte [ebp - 4], 6
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0x1009e300
push eax
call fcn.10004b70
add esp, 0xc
push dword [ebp - 0x1c]
call fcn.10056c81
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x10087706
push 0x1009f8ac
push eax
call fcn.1005abc1
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10087706
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
je 0x10087706
lea eax, [ecx + 3]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.10004010
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.1000a6f0
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
push 0
mov edx, dword [ecx - 0xc]
lea edi, [ebp - 0x2c]
push edi
push edx
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x100877b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push 0x1009e300
push eax
call fcn.10004b70
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100877b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100877da
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100877f7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10087656
mov ecx, dword [edi]
push edi
jmp 0x10087651
push 0x80070057
call fcn.10005160
int3