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

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x41a7bc
call fcn.004198a0
sub esp, 0xb8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x78], 0x10
mov eax, dword [ebp + 0x64]
jae 0x40190b
lea eax, [ebp + 0x64]
push esi
push 0x8000080
push 3
push esi
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x54], eax
jne 0x4019c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp + 0x1c]
call fcn.00419540
mov edi, eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp]
push str.File:
push eax
mov byte [ebp - 4], bl
call fcn.00404c40
push str._rError:
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.00404ba1
push edi
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.00404bee
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x401986
mov eax, dword [eax + 4]
jmp 0x401989
add eax, 4
push esi
push str.Failed_to_open_archive_
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403a1e
lea ecx, [ebp]
push esi
push ebx
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00403a1e
jmp 0x401cf8
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push esi
push eax
call edi
push ebx
push esi
push 0xffffffffffffffe9
push dword [ebp + 0x54]
call edi
cmp eax, 0x16
jbe 0x401a63
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x16
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x16
lea eax, [ebp - 0x44]
push str.chunked_installer_tail
push eax
call fcn.0040aca5
add esp, 0xc
test eax, eax
jne 0x4019d1
push ebx
push esi
push 0x14
push dword [ebp + 0x54]
call edi
push 0xf
pop edi
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], edi
call fcn.00403a02
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x54]
mov byte [ebp - 4], 7
call fcn.00401714
test al, al
pop ecx
pop ecx
lea ecx, [ebp + 0x1c]
je 0x401ce8
push str.chunked_installer_tail
call fcn.004031c4
test eax, eax
jne 0x401ac8
mov byte [0x424cc4], bl
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00403a1e
jmp 0x401a17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp + 0x1c]
call fcn.00419540
mov edi, eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp]
push str.File:
push eax
mov byte [ebp - 4], 4
call fcn.00404c40
push str._rError:
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.00404ba1
push edi
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 6
call fcn.00404bee
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x401aba
mov eax, dword [eax + 4]
jmp 0x401abd
add eax, 4
push esi
push str.Failed_to_initialize_archive_
jmp 0x40198f
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], edi
call fcn.00403a02
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x54]
mov byte [ebp - 4], 8
call fcn.00401714
test al, al
pop ecx
pop ecx
je 0x401cdb
push str.value
lea ecx, [ebp + 0x1c]
call fcn.004031c4
test eax, eax
jne 0x401b75
push esi
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], edi
call fcn.00403a02
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x54]
mov byte [ebp - 4], 9
call fcn.00401714
test al, al
pop ecx
pop ecx
je 0x401cd1
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040349e
push eax
lea ebx, [ebp - 0xa8]
mov byte [ebp - 4], 0xa
call fcn.004033c1
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.00403a1e
push esi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00403a1e
push esi
push 1
lea ecx, [ebp + 0x38]
call fcn.00403a1e
xor ebx, ebx
inc ebx
jmp 0x401cc2
push str.file
lea ecx, [ebp + 0x1c]
call fcn.004031c4
test eax, eax
jne 0x401cb1
push esi
lea ecx, [ebp]
mov dword [ebp + 0x18], edi
call fcn.00403a02
push esi
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], edi
call fcn.00403a02
lea eax, [ebp]
push eax
push dword [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.00401714
test al, al
pop ecx
pop ecx
je 0x401d14
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x54]
call fcn.00401714
test al, al
pop ecx
pop ecx
je 0x401d14
cmp dword [ebp - 0x14], esi
je 0x401c18
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040349e
push eax
lea ebx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.004033c1
push esi
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00403a1e
push esi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00403a1e
xor ebx, ebx
inc ebx
lea eax, [ebp]
push eax
lea eax, [ebp - 0x64]
push 0x423cb8
push eax
call fcn.00404bee
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 0xe
call fcn.00403524
push esi
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00403a1e
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x401c57
lea eax, [ebp + 4]
push esi
push 0x8000080
push 2
push esi
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d23
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x401c84
lea eax, [ebp + 0x3c]
push esi
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp]
call fcn.00403a1e
jmp 0x401cc2
push str.stub
lea ecx, [ebp + 0x1c]
call fcn.004031c4
test eax, eax
je 0x401cdb
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403a1e
jmp 0x401a57
lea ecx, [ebp + 0x38]
push esi
push ebx
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403a1e
lea ecx, [ebp + 0x1c]
push esi
push ebx
call fcn.00403a1e
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
lea ecx, [ebp + 0x60]
call fcn.00403a1e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x58
leave
ret
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403a1e
lea ecx, [ebp]
jmp 0x401cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp - 0x80]
call fcn.00419540
mov edi, eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0xc4]
push str.File:
push eax
mov byte [ebp - 4], 0xf
call fcn.00404c40
push str._rError:
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x10
call fcn.00404ba1
push edi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x11
call fcn.00404bee
add esp, 0x28
cmp dword [eax + 0x18], 0x10
jb 0x401d7d
mov eax, dword [eax + 4]
jmp 0x401d80
add eax, 4
push esi
push str.Failed_to_extract_file_
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp - 0xc4]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403a1e
push esi
push ebx
lea ecx, [ebp]
call fcn.00403a1e
lea ecx, [ebp - 0x28]
jmp 0x4019ae