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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x41f268]
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
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, 0x10
mov byte [ebp - 0x9d], bl
cmp dword [ebp + 0x20], edi
jae 0x404446
lea eax, [ebp + 0xc]
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
jne 0x404585
cmp byte [ebp + 0x40], bl
jne 0x40454e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x64]
call fcn.0041787f
mov esi, eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 2
call fcn.00403b08
push str._rError:
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 3
call fcn.00403b51
push esi
push eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00403470
add esp, 0x20
cmp dword [eax + 0x18], edi
jb 0x4044c8
mov eax, dword [eax + 4]
jmp 0x4044cb
add eax, 4
push ebx
push str.Failed_to_open_archive_
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x30], edi
jb 0x4044ea
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00408bbb
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
cmp dword [ebp - 0x84], edi
jb 0x40450f
mov edx, dword [ebp - 0x98]
push edx
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
cmp dword [ebp - 0x68], edi
jb 0x404532
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
cmp dword [ebp - 0x4c], edi
jb 0x404553
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00408bbb
add esp, 4
jmp 0x404553
mov esi, 0xf
cmp dword [ebp + 0x20], edi
jb 0x404564
mov edx, dword [ebp + 0xc]
push edx
call fcn.00408bbb
add esp, 4
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x40457e
mov eax, dword [ebp + 0x28]
push eax
call fcn.00408bbb
add esp, 4
xor al, al
jmp 0x404afa
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4045a0
mov ecx, dword [ebp - 0xa4]
push 1
push ebx
push 0xffffffffffffffe9
push ecx
call esi
cmp eax, 0x16
jbe 0x404692
mov ecx, dword [ebp - 0xa4]
push ebx
lea edx, [ebp - 0xac]
push edx
push 0x16
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
push 0x16
lea edx, [ebp - 0x28]
push str.chunked_installer_tail
push edx
call fcn.0040aa04
add esp, 0xc
test eax, eax
jne 0x4045a0
mov eax, dword [ebp - 0xa4]
push 1
push ebx
push 0x14
push eax
call esi
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x9d]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.004041e0
add esp, 4
test al, al
je 0x404aab
mov esi, dword [ebp - 0x50]
mov ecx, esi
cmp esi, 0x16
jb 0x404633
mov ecx, 0x16
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x60]
cmp edi, 0x10
jae 0x404641
lea eax, [ebp - 0x60]
push ecx
push str.chunked_installer_tail
push eax
call section..text
add esp, 0xc
cmp eax, ebx
jne 0x4047b4
cmp esi, 0x16
jb 0x4047b4
xor eax, eax
cmp esi, 0x16
setne al
cmp eax, ebx
jne 0x4047b4
mov byte [ebp - 0x9d], 1
cmp edi, 0x10
jb 0x4045f3
mov edx, dword [ebp - 0x60]
push edx
call fcn.00408bbb
add esp, 4
jmp 0x4045f3
mov edi, 0xf
cmp byte [ebp + 0x40], bl
jne 0x404779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x64]
call fcn.0041787f
mov esi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 5
call fcn.00403b08
push str._rError:
push eax
lea edx, [ebp - 0x9c]
push edx
mov byte [ebp - 4], 6
call fcn.00403b51
push esi
push eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00403470
mov esi, 0x10
add esp, 0x20
cmp dword [eax + 0x18], esi
jb 0x4046f8
mov eax, dword [eax + 4]
jmp 0x4046fb
add eax, 4
push ebx
push str.Failed_to_initialize_archive_
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x30], esi
jb 0x40471a
mov eax, dword [ebp - 0x44]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
cmp dword [ebp - 0x84], esi
jb 0x40473a
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
cmp dword [ebp - 0x68], esi
jb 0x40475d
mov edx, dword [ebp - 0x7c]
push edx
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
cmp dword [ebp - 0x4c], esi
jb 0x40477e
mov eax, dword [ebp - 0x60]
push eax
call fcn.00408bbb
add esp, 4
jmp 0x40477e
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x40478f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408bbb
add esp, 4
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x40457e
mov edx, dword [ebp + 0x28]
push edx
call fcn.00408bbb
add esp, 4
xor al, al
jmp 0x404afa
mov edi, 0xf
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x9d]
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 9
call fcn.004041e0
add esp, 4
test al, al
je 0x404aa3
mov ecx, dword [ebp - 0x50]
push 5
push str.value
push ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00401e20
test eax, eax
jne 0x4048a7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea edx, [ebp - 0x9d]
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.004041e0
add esp, 4
test al, al
je 0x404a9b
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.004021a0
mov ecx, dword [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10c]
push eax
push ecx
mov byte [ebp - 4], 0xb
call fcn.004025c0
mov edi, 0x10
cmp dword [ebp - 0xb0], edi
jb 0x404871
mov edx, dword [ebp - 0xc4]
push edx
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xc4], bl
cmp dword [ebp - 0xcc], edi
jb 0x404a28
mov eax, dword [ebp - 0xe0]
push eax
call fcn.00408bbb
add esp, 4
jmp 0x404a28
mov edx, dword [ebp - 0x50]
push 4
push str.file
push edx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00401e20
test eax, eax
jne 0x404a3b
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
lea eax, [ebp - 0x9d]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.004041e0
add esp, 4
test al, al
je 0x404a90
lea ecx, [ebp - 0x9d]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004041e0
add esp, 4
test al, al
je 0x404a90
cmp dword [ebp - 0x6c], ebx
je 0x404956
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004021a0
push eax
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 0xe
call fcn.004025c0
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.00401c30
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp + 0x24]
push edx
lea esi, [ebp - 0x100]
call fcn.00403470
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00401c90
mov edi, 0x10
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xe8], edi
jb 0x40499c
mov eax, dword [ebp - 0xfc]
push eax
call fcn.00408bbb
add esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x4049a7
lea eax, [ebp - 0x44]
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404b16
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x84], edi
jae 0x4049dd
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x88]
push ebx
lea ecx, [ebp - 0xac]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x84], edi
jb 0x404a12
mov eax, dword [ebp - 0x98]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
cmp dword [ebp - 0x30], edi
jb 0x404a58
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00408bbb
add esp, 4
jmp 0x404a58
mov edx, dword [ebp - 0x50]
push 4
push str.stub
push edx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00401e20
test eax, eax
je 0x404aa3
mov edi, 0x10
cmp dword [ebp - 0x68], edi
jb 0x404a69
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
cmp dword [ebp - 0x4c], edi
jb 0x4045f3
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00408bbb
add esp, 4
jmp 0x4045f3
lea ecx, [ebp - 0x9c]
call fcn.00401a30
lea ecx, [ebp - 0x48]
call fcn.00401a30
lea ecx, [ebp - 0x80]
call fcn.00401a30
lea ecx, [ebp - 0x64]
call fcn.00401a30
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x404ad6
mov eax, dword [ebp + 0xc]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x404af4
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.00408bbb
add esp, 4
mov al, byte [ebp - 0x9d]
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.004088c0
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x40], bl
jne 0x404bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0xc8]
call fcn.0041787f
mov esi, eax
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 4], 0x10
call fcn.00403b08
push str._rError:
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0x11
call fcn.00403b51
push esi
push eax
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 0x12
call fcn.00403470
add esp, 0x20
cmp dword [eax + 0x18], edi
jb 0x404b78
mov eax, dword [eax + 4]
jmp 0x404b7b
add eax, 4
push ebx
push str.Failed_to_extract_file_
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x100]
call fcn.00401a30
lea ecx, [ebp - 0x2c]
call fcn.00401a30
lea ecx, [ebp - 0x128]
call fcn.00401a30
lea ecx, [ebp - 0xc8]
call fcn.00401a30
lea ecx, [ebp - 0x9c]
call fcn.00401a30
lea ecx, [ebp - 0x48]
call fcn.00401a30
lea ecx, [ebp - 0x80]
call fcn.00401a30
lea ecx, [ebp - 0x64]
call fcn.00401a30
lea ecx, [ebp + 8]
call fcn.00401a30
lea ecx, [ebp + 0x24]
call fcn.00401a30
xor al, al
jmp 0x404afa