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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098018
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100bb2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10097076
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.10097490
mov edi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.10097490
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
call fcn.10097590
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.100096bf
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
add esp, 0x1c
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100970f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009710f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009712d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x10097152
cmp ecx, dword [esi]
jne 0x10097152
lock inc dword [eax]
jmp 0x1009717f
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 1
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x10097168
call fcn.10008e8b
mov eax, dword [ebx]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x1c]
call fcn.100010b0
add esp, 8
add esi, 0x10
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100971ad
push 0x104
lea ecx, [ebp - 0x18]
call fcn.10008e39
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.1005fea7
add esp, 8
test eax, eax
js 0x10097484
cmp eax, dword [esi - 8]
jg 0x10097484
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 0x1009723c
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.1005a95d
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov byte [eax + edi], 0
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100972a8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10097257
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10097275
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
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10097294
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
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x100972bd
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x100a57dd
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x100972f2
movzx edi, ax
mov ecx, edi
call fcn.10001cf0
test eax, eax
je 0x10097301
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.10007d68
jmp 0x10097301
push 0
push 0x100a57dd
lea ecx, [ebp - 0x10]
call fcn.10008e96
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
push edi
push 0x100a6b28
push eax
call fcn.100096bf
add esp, 0xc
push 1
push edi
call fcn.1005a94f
add esp, 8
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 0x10097372
push 0x100aa5b4
push edi
call fcn.100640d9
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10097372
sub ecx, edi
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x10097372
lea eax, [ecx + 3]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.100112b0
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.10017180
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]
lea edx, [ebp - 0x24]
push 0
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 0x10097423
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x100973e1
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push 0x100a6b28
push eax
call fcn.100096bf
mov byte [ebp - 4], 7
add esp, 0xc
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10097423
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]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009744a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10097465
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10097275
mov ecx, dword [ebx]
push ebx
jmp 0x10097270
push 0x80070057
call fcn.10001bd3
int3