Function at 0x4089f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c6a
mov eax, dword fs:[0]
push eax
mov eax, 0x230c
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x21dc], 7
push 0xffffffffffffffff
push eax
push 0x431b30
lea ecx, [ebp - 0x21f0]
mov dword [ebp - 0x21e0], 0
mov word [ebp - 0x21f0], ax
call fcn.00401a60
push 0xe
push 0x42a750
lea ecx, [ebp - 0x21f0]
mov dword [ebp - 4], 0
call fcn.00403660
xor esi, esi
mov dword [ebp - 0x2138], 0xf
mov dword [ebp - 0x213c], esi
mov byte [ebp - 0x214c], 0
push esi
push 0x80
push 3
push esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21f0]
cmp dword [ebp - 0x21dc], 8
push 1
cmovae eax, dword [ebp - 0x21f0]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408b29
push 0x2000
lea eax, [ebp - 0x2118]
push esi
push eax
call fcn.004181f0
add esp, 0xc
lea eax, [ebp - 0x2210]
push esi
push eax
push 0x1fff
lea eax, [ebp - 0x2118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2310]
push eax
lea ecx, [ebp - 0x2118]
call fcn.00410340
add esp, 4
test eax, eax
je 0x408b29
cmp dword [eax], esi
jne 0x408b29
lea ecx, [eax + 8]
mov edx, str.allowed_origins
call fcn.00410ed0
mov esi, eax
test esi, esi
je 0x408b29
xor eax, eax
cmp dword [esi], 1
cmovne esi, eax
push 0x2c
lea eax, [ebp - 0x2194]
push 0
push eax
call fcn.004181f0
add esp, 0xc
mov dword [ebp - 0x217c], 0xf
mov dword [ebp - 0x2180], 0
mov byte [ebp - 0x2190], 0
mov dword [ebp - method.JSONNodeCollection.virtual_0], vtable.JSONNodeCollection.0
mov dword [ebp - 0x2178], 0
mov dword [ebp - 0x2174], 0
mov dword [ebp - 0x2170], 0
push 0x7b
push ecx
lea ecx, [ebp - 0x2190]
mov byte [ebp - 4], 4
call fcn.0040a930
mov word [ebp - 0x216c], 0x7d7b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2130]
push 0
push 0x42a6be
mov dword [ebp - method.JSONNode.virtual_0], vtable.JSONNode.0
mov dword [ebp - 0x211c], 0xf
mov dword [ebp - 0x2120], 0
mov byte [ebp - 0x2130], 0
call fcn.00401b50
mov dword [ebp - method.JSONNode.virtual_0], vtable.JSONStringNode.0
push 0x2c
lea eax, [ebp - 0x21d8]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.004181f0
add esp, 0xc
lea ecx, [ebp - 0x21d8]
push str.allowed_origins
call fcn.00407b50
mov dword [ebp - method.JSONNodeCollection.virtual_0], vtable.JSONNodeCollection.0
mov dword [ebp - 0x21bc], 0
mov dword [ebp - 0x21b8], 0
mov dword [ebp - 0x21b4], 0
push 0x5b
push ecx
lea ecx, [ebp - 0x21d4]
mov byte [ebp - 4], 8
call fcn.0040a930
mov word [ebp - 0x21b0], 0x5d5b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2164]
push 1
push 0x42aa50
mov dword [ebp - 0x2150], 0xf
mov dword [ebp - 0x2154], 0
mov byte [ebp - 0x2164], 0
call fcn.00401b50
push str.org.infosoftware.ext_host
push str.name
lea ecx, [ebp - 0x2134]
mov byte [ebp - 4], 0xa
call fcn.00407c80
push 0x24
push str._name_:__org.infosoftware.ext_host__
lea ecx, [ebp - 0x2164]
call fcn.0040a800
lea eax, [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x2194]
call fcn.00407dd0
push str.Info_Software_lp_Native_Host
push str.description
lea ecx, [ebp - 0x2134]
call fcn.00407c80
lea eax, [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x2194]
call fcn.00407dd0
push 0x2e
push str._description_:__Info_Software_lp_Native_Host__
lea ecx, [ebp - 0x2164]
call fcn.0040a800
cmp dword [0x431b44], 8
lea ecx, [ebp - 0x118]
push 0
push 0
push 0x104
push ecx
push 0xffffffffffffffff
mov eax, 0x431b30
cmovae eax, dword [0x431b30]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x21f4], 0xf
mov dword [ebp - 0x21f8], 0
mov byte [ebp - 0x2208], 0
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x118], 0
jne 0x408d4c
xor ecx, ecx
jmp 0x408d5e
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408d55
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2208]
call fcn.00401b50
push 0xf
push 0x42aad8
lea ecx, [ebp - 0x2208]
call fcn.0040a800
cmp dword [ebp - 0x21f4], 0x10
lea eax, [ebp - 0x2208]
lea ecx, [ebp - 0x2134]
cmovae eax, dword [ebp - 0x2208]
push eax
push str.path
call fcn.00407c80
lea eax, [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x2194]
call fcn.00407dd0
push 9
push str._path_:__
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push 0xe
push str.NativeHost.exe
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push 2
push 0x42ab0c
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push 0x14
push str._allowed_origins_:__
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push str.stdio
push str.type
lea ecx, [ebp - 0x2134]
call fcn.00407c80
lea eax, [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x2194]
call fcn.00407dd0
test esi, esi
je 0x408f59
mov ecx, esi
xor edi, edi
call fcn.00410460
test eax, eax
je 0x408f59
cmp dword [esi], 1
jne 0x408e86
cmp edi, dword [esi + 0xc]
jae 0x408e86
mov eax, dword [esi + 0x10]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x408e86
cmp dword [edx], 2
jne 0x408e60
mov edx, dword [edx + 8]
jmp 0x408e62
xor edx, edx
cmp byte [edx], 0
jne 0x408e6b
xor ecx, ecx
jmp 0x408e79
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e70
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x214c]
call fcn.00401b50
cmp dword [ebp - 0x213c], 0
je 0x408f49
push 1
push 0x42a744
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x214c]
push eax
lea ecx, [ebp - 0x2164]
call fcn.004079d0
push 2
push 0x42ab0c
lea ecx, [ebp - 0x2164]
call fcn.0040a800
cmp dword [ebp - 0x2138], 0x10
lea ebx, [ebp - 0x214c]
lea eax, [ebp - 0x2130]
mov dword [ebp - 0x2120], 0
cmovae ebx, dword [ebp - 0x214c]
cmp dword [ebp - 0x211c], 0x10
cmovae eax, dword [ebp - 0x2130]
mov byte [eax], 0
test ebx, ebx
je 0x408f37
push 1
push 0x42a744
lea ecx, [ebp - 0x2130]
call fcn.0040a800
lea edx, [ebp - 0x2130]
mov ecx, ebx
call fcn.00407ad0
push 1
push 0x42a744
lea ecx, [ebp - 0x2130]
call fcn.0040a800
lea eax, [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x21d8]
call fcn.00407dd0
mov ecx, esi
inc edi
call fcn.00410460
cmp edi, eax
jb 0x408e42
mov ecx, dword [0x4338d0]
mov eax, 0x51eb851f
sub ecx, dword [0x4338cc]
xor ebx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409183
xor esi, esi
mov dword [ebp - 0x2314], esi
jmp 0x408f90
push 0x13
push str.chrome_extension:__
lea ecx, [ebp - 0x214c]
call fcn.00401b50
mov eax, dword [0x4338cc]
lea ecx, [ebp - 0x214c]
push 0xffffffffffffffff
add eax, 0x18
add eax, esi
push 0
push eax
call fcn.004079d0
push 0x2f
push ecx
lea ecx, [ebp - 0x214c]
call fcn.0040a930
cmp dword [ebp - 0x2138], 0x10
lea esi, [ebp - 0x214c]
lea eax, [ebp - 0x2130]
mov dword [ebp - 0x2120], 0
cmovae esi, dword [ebp - 0x214c]
cmp dword [ebp - 0x211c], 0x10
cmovae eax, dword [ebp - 0x2130]
mov byte [eax], 0
test esi, esi
je 0x409034
push 1
push 0x42a744
lea ecx, [ebp - 0x2130]
call fcn.0040a800
lea edx, [ebp - 0x2130]
mov ecx, esi
call fcn.00407ad0
push 1
push 0x42a744
lea ecx, [ebp - 0x2130]
call fcn.0040a800
mov dword [ebp - 0x2198], 0xf
mov dword [ebp - 0x219c], 0
mov byte [ebp - 0x21ac], 0
lea eax, [ebp - 0x21ac]
mov byte [ebp - 4], 0xc
push eax
mov eax, dword [ebp - 0x2134]
lea ecx, [ebp - 0x2134]
call dword [eax]
mov ecx, dword [ebp - 0x21b8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x21bc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409099
push 1
push 0x42a74c
lea ecx, [ebp - 0x21d4]
call fcn.0040a800
lea eax, [ebp - 0x21ac]
push eax
lea ecx, [ebp - 0x21bc]
call fcn.00407300
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x21ac]
push eax
lea ecx, [ebp - 0x21d4]
call fcn.004079d0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x2198], 0x10
jb 0x4090dc
push dword [ebp - 0x21ac]
call fcn.00411307
add esp, 4
push 1
push 0x42a744
lea ecx, [ebp - 0x2164]
call fcn.0040a800
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x214c]
push eax
lea ecx, [ebp - 0x2164]
call fcn.004079d0
push 1
push 0x42a744
lea ecx, [ebp - 0x2164]
call fcn.0040a800
mov esi, dword [0x4338d0]
mov eax, 0x51eb851f
mov edi, dword [0x4338cc]
mov ecx, esi
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp ebx, eax
jae 0x40915a
push 1
push 0x42a74c
lea ecx, [ebp - 0x2164]
call fcn.0040a800
mov esi, dword [0x4338d0]
mov edi, dword [0x4338cc]
add dword [ebp - 0x2314], 0x64
sub esi, edi
mov eax, 0x51eb851f
inc ebx
imul esi
mov esi, dword [ebp - 0x2314]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408f90
push 2
push 0x42ab4c
lea ecx, [ebp - 0x2164]
call fcn.0040a800
mov dword [ebp - 0x2198], 0xf
mov dword [ebp - 0x219c], 0
mov byte [ebp - 0x21ac], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x21ac]
mov edx, dword [ebp - 0x21d8]
push ecx
lea ecx, [ebp - 0x21d8]
call dword [edx]
mov ecx, dword [ebp - 0x2174]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x2178]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4091fa
push 1
push 0x42a74c
lea ecx, [ebp - 0x2190]
call fcn.0040a800
lea eax, [ebp - 0x21ac]
push eax
lea ecx, [ebp - 0x2178]
call fcn.00407300
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x21ac]
push eax
lea ecx, [ebp - 0x2190]
call fcn.004079d0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x2198], 0x10
jb 0x40923d
push dword [ebp - 0x21ac]
call fcn.00411307
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2190]
push eax
lea ecx, [ebp - 0x214c]
call fcn.00401930
push dword [ebp - 0x216b]
push ecx
lea ecx, [ebp - 0x214c]
call fcn.0040a930
cmp dword [ebp - 0x21dc], 8
lea eax, [ebp - 0x21f0]
push 0
cmovae eax, dword [ebp - 0x21f0]
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4092cb
cmp dword [ebp - 0x2138], 0x10
lea eax, [ebp - 0x220c]
push 0
push eax
push dword [ebp - 0x213c]
lea ecx, [ebp - 0x214c]
cmovae ecx, dword [ebp - 0x214c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21f4], 0x10
jb 0x4092e2
push dword [ebp - 0x2208]
call fcn.00411307
add esp, 4
cmp dword [ebp - 0x2150], 0x10
mov dword [ebp - 0x21f4], 0xf
mov dword [ebp - 0x21f8], 0
mov byte [ebp - 0x2208], 0
jb 0x409314
push dword [ebp - 0x2164]
call fcn.00411307
add esp, 4
mov esi, dword [ebp - 0x21bc]
mov dword [ebp - 0x2150], 0xf
mov dword [ebp - 0x2154], 0
mov byte [ebp - 0x2164], 0
test esi, esi
je 0x409398
mov edi, dword [ebp - 0x21b8]
cmp esi, edi
je 0x409371
cmp dword [esi + 0x14], 0x10
jb 0x409353
push dword [esi]
call fcn.00411307
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x409343
mov esi, dword [ebp - 0x21bc]
push esi
call fcn.00411307
add esp, 4
mov dword [ebp - 0x21bc], 0
mov dword [ebp - 0x21b8], 0
mov dword [ebp - 0x21b4], 0
cmp dword [ebp - 0x21c0], 0x10
jb 0x4093af
push dword [ebp - 0x21d4]
call fcn.00411307
add esp, 4
cmp dword [ebp - 0x211c], 0x10
mov dword [ebp - 0x21c0], 0xf
mov dword [ebp - 0x21c4], 0
mov byte [ebp - 0x21d4], 0
jb 0x4093e1
push dword [ebp - 0x2130]
call fcn.00411307
add esp, 4
mov esi, dword [ebp - 0x2178]
mov dword [ebp - 0x211c], 0xf
mov dword [ebp - 0x2120], 0
mov byte [ebp - 0x2130], 0
test esi, esi
je 0x409465
mov edi, dword [ebp - 0x2174]
cmp esi, edi
je 0x40943e
cmp dword [esi + 0x14], 0x10
jb 0x409420
push dword [esi]
call fcn.00411307
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x409410
mov esi, dword [ebp - 0x2178]
push esi
call fcn.00411307
add esp, 4
mov dword [ebp - 0x2178], 0
mov dword [ebp - 0x2174], 0
mov dword [ebp - 0x2170], 0
cmp dword [ebp - 0x217c], 0x10
jb 0x40947c
push dword [ebp - 0x2190]
call fcn.00411307
add esp, 4
cmp dword [ebp - 0x2138], 0x10
mov dword [ebp - 0x217c], 0xf
mov dword [ebp - 0x2180], 0
mov byte [ebp - 0x2190], 0
jb 0x4094ae
push dword [ebp - 0x214c]
call fcn.00411307
add esp, 4
cmp dword [ebp - 0x21dc], 8
mov dword [ebp - 0x2138], 0xf
mov dword [ebp - 0x213c], 0
mov byte [ebp - 0x214c], 0
jb 0x4094e0
push dword [ebp - 0x21f0]
call fcn.00411307
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret