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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
lea ecx, [edi + 0x68]
push esi
mov dword [esp + 0x10], ecx
call fcn.0045ee15
mov ebx, eax
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x1c], ebx
je 0x45dae9
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [edi + 0x5c]
push esi
lea eax, [esp + 0x10]
push eax
call fcn.0041f0fb
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045ee15
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x14]
call fcn.00438d54
mov eax, dword [ebx + 0xc]
push dword [esi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405d54
lea ecx, [esp + 0x20]
call fcn.00450f30
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x20]
inc bl
call fcn.004058e3
test bl, bl
je 0x45db71
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
push 0x104
push edi
mov ebx, eax
call fcn.0045ece8
push 0xe
pop esi
lea ecx, [esp + 0xc]
call fcn.004058e3
mov eax, esi
jmp 0x45dae1
mov ecx, dword [esi]
xor ebx, ebx
push ebx
push dword [esp + 0x2c]
call fcn.0046eb2a
pop ecx
pop ecx
test al, al
jne 0x45dbfc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x45db9f
mov eax, dword [esi]
mov edx, dword [ecx]
push ebx
push dword [esp + 0x2c]
push eax
call dword [edx]
test eax, eax
jne 0x45dbfc
cmp byte [0x506010], bl
je 0x45dbf5
mov eax, dword [esp + 0x1c]
add eax, 0x18
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0045ed44
pop ecx
pop ecx
push dword [eax]
lea eax, [esp + 0x24]
push str.Not_enough_disk_space_to_extract_file:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [esp + 0x20]
call fcn.004058e3
lea ecx, [esp + 0x1c]
call fcn.004058e3
push 0xa
jmp 0x45db60
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045ee15
cmp dword [eax + 4], 0xc
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
sete byte [esp + 0xb]
xor esi, esi
mov dword [esp + 0x20], ebx
cmp ebx, esi
je 0x45dc5d
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add esi, 0x1c
call fcn.0045ee15
push 0
push dword [eax + 0xc]
mov ecx, ebx
call dword [esi]
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add esi, 0x14
call fcn.0045ee15
push dword [eax]
lea ecx, [esp + 0x10]
call fcn.004506e0
push eax
mov ecx, ebx
call dword [esi]
xor esi, esi
cmp byte [esp + 0xb], 0
je 0x45dc75
lea esi, [edi + 0x98]
lea ebx, [esp + 0xc]
call fcn.0044e430
xor esi, esi
lea eax, [edi + 0xa4]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00450af0
pop ecx
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x45dd3e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea ecx, [esp + 0xc]
push ecx
push 0x104
push edi
mov ebx, eax
call fcn.0045ece8
cmp byte [0x506010], 0
je 0x45dd2f
call esi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.00460099
pop ecx
push dword [eax]
lea eax, [esp + 0x24]
push str._Error:
push dword [esp + 0x14]
push str.Failed_to_extract_file:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [esp + 0x20]
call fcn.004058e3
lea ecx, [esp + 0x1c]
call fcn.004058e3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
jmp 0x45db60
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov ebx, dword [edi + 0x74]
push esi
push esi
call fcn.0045ee15
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45dd89
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0045ece8
cmp dword [esp + 0x28], 0
je 0x45dd37
push dword [esp + 0x28]
jmp 0x45dd31
push 0x10000
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call fcn.00438364
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc4], esi
call fcn.0045ee15
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
shr ebx, 1
and bl, 1
call fcn.0045ee15
mov esi, dword [eax + 0xc]
and dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x45dddf
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x45dea9
mov eax, 0x10000
mov ecx, eax
cmp esi, eax
ja 0x45ddec
mov ecx, esi
mov eax, dword [edi + 0x74]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45de74
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45de74
test bl, bl
je 0x45de21
mov edx, dword [esp + 0x14]
lea ecx, [edi + 0xbc]
call fcn.0046fd7b
push 0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45de74
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45de74
add dword [esp + 0x1c], eax
sub esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45de6c
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
mov eax, dword [esp + 0x2c]
call dword [eax + 0x20]
test esi, esi
jg 0x45ddca
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045ee15
push dword [esp + 0x14]
mov byte [eax + 0x1c], 1
call fcn.0049d65c
xor esi, esi
pop ecx
cmp dword [esp + 0x28], esi
je 0x45db61
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45db61
push dword [esp + 0x14]
call fcn.0049d65c
cmp dword [esp + 0x2c], 0
pop ecx
je 0x45dec4
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
jmp 0x45db60