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

Disassembly:
mov eax, 0x427052
call fcn.00425734
sub esp, 0x110
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4018c5
lea eax, [ebp + 0xc]
push ebx
push 0x8000080
push 3
push ebx
xor esi, esi
inc esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40198b
cmp byte [0x433f19], bl
jne 0x401cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp - 0x48]
call fcn.004253d5
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x64]
push str.File:
push eax
mov byte [ebp - 4], 1
call fcn.00405561
push str._rError:
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.004055b3
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00405600
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x40194d
mov eax, dword [eax + 4]
jmp 0x401950
add eax, 4
push ebx
push str.Failed_to_open_archive_
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00404329
lea ecx, [ebp - 0x64]
push ebx
push esi
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404329
jmp 0x401cf1
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call edi
push esi
push ebx
push 0xffffffffffffffe9
push dword [ebp - 0x10]
call edi
cmp eax, 0x16
jbe 0x401a38
push ebx
lea eax, [ebp - 0x84]
push eax
push 0x16
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x16
lea eax, [ebp - 0x9c]
push str.chunked_installer_tail
push eax
call fcn.0040d485
add esp, 0xc
test eax, eax
jne 0x401998
push esi
push ebx
push 0x14
push dword [ebp - 0x10]
call edi
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.0040430a
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004016c8
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
test al, al
je 0x401ce1
push str.chunked_installer_tail
call fcn.00403acf
test eax, eax
jne 0x401aa9
mov byte [0x433f18], 1
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404329
jmp 0x4019e7
cmp byte [0x433f19], bl
jne 0x401cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp - 0x48]
call fcn.004253d5
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x64]
push str.File:
push eax
mov byte [ebp - 4], 4
call fcn.00405561
push str._rError:
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 5
call fcn.004055b3
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.00405600
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x401a9b
mov eax, dword [eax + 4]
jmp 0x401a9e
add eax, 4
push ebx
push str.Failed_to_initialize_archive_
jmp 0x401956
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], edi
call fcn.0040430a
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004016c8
pop ecx
pop ecx
test al, al
je 0x401cd4
push str.value
lea ecx, [ebp - 0x48]
call fcn.00403acf
test eax, eax
jne 0x401b5b
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0040430a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.004016c8
pop ecx
pop ecx
test al, al
je 0x401cca
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00403d94
push eax
lea ebx, [ebp - 0x100]
mov byte [ebp - 4], 0xa
call fcn.00403cb6
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0xd8]
call fcn.00404329
push esi
push 1
lea ecx, [ebp - 0xf4]
call fcn.00404329
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404329
xor ebx, ebx
inc esi
jmp 0x401cbb
push str.file
lea ecx, [ebp - 0x48]
call fcn.00403acf
test eax, eax
jne 0x401caa
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], edi
call fcn.0040430a
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0040430a
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.004016c8
pop ecx
pop ecx
test al, al
je 0x401d0a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
call fcn.004016c8
pop ecx
pop ecx
test al, al
je 0x401d0a
cmp dword [ebp - 0x6c], ebx
je 0x401c08
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00403d94
push eax
lea ebx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.00403cb6
push 0
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xc
call fcn.00404329
push 0
push 1
lea ecx, [ebp - 0xf4]
call fcn.00404329
xor esi, esi
xor ebx, ebx
inc esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xbc]
push 0x432b64
push eax
call fcn.00405600
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
call fcn.00403e29
push ebx
push esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
call fcn.00404329
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x401c4d
lea eax, [ebp - 0x60]
push ebx
push 0x8000080
push 2
push ebx
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d19
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401c7a
lea eax, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.00404329
jmp 0x401cbb
push str.stub
lea ecx, [ebp - 0x48]
call fcn.00403acf
test eax, eax
je 0x401cd4
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00404329
jmp 0x401a2c
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00404329
lea ecx, [ebp - 0x48]
push ebx
push esi
call fcn.00404329
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00404329
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404329
lea ecx, [ebp - 0x64]
jmp 0x401ccd
cmp byte [0x433f19], bl
jne 0x401dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp - 0xd8]
call fcn.004253d5
mov edi, eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x11c]
push str.File:
push eax
mov byte [ebp - 4], 0xf
call fcn.00405561
push str._rError:
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 0x10
call fcn.004055b3
push edi
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 0x11
call fcn.00405600
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x401d88
mov eax, dword [eax + 4]
jmp 0x401d8b
add eax, 4
push ebx
push str.Failed_to_extract_file_
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0xa0]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x11c]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0xd8]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404329
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.00404329
lea ecx, [ebp - 0x80]
jmp 0x401975