Function at 0x45cf72
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 + 0x64]
push esi
mov dword [esp + 0x10], ecx
call fcn.0045e2c4
mov ebx, eax
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x1c], ebx
je 0x45cfa2
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.0041f17d
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045e2c4
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x14]
call fcn.004390fc
mov eax, dword [ebx + 0xc]
push dword [esi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405d14
lea ecx, [esp + 0x20]
call fcn.004511a0
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x20]
inc bl
call fcn.004058a3
test bl, bl
je 0x45d02a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
push 0x104
push edi
mov ebx, eax
call fcn.0045e197
push 0xe
pop esi
lea ecx, [esp + 0xc]
call fcn.004058a3
mov eax, esi
jmp 0x45cf9a
mov ecx, dword [esi]
xor ebx, ebx
push ebx
push dword [esp + 0x2c]
call fcn.0046dc70
pop ecx
pop ecx
test al, al
jne 0x45d0b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x45d058
mov eax, dword [esi]
mov edx, dword [ecx]
push ebx
push dword [esp + 0x2c]
push eax
call dword [edx]
test eax, eax
jne 0x45d0b5
cmp byte [0x505028], bl
je 0x45d0ae
mov eax, dword [esp + 0x1c]
add eax, 0x18
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0045e1f3
pop ecx
pop ecx
push dword [eax]
lea eax, [esp + 0x24]
push str.Not_enough_disk_space_to_extract_file:
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [esp + 0x20]
call fcn.004058a3
lea ecx, [esp + 0x1c]
call fcn.004058a3
push 0xa
jmp 0x45d019
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045e2c4
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 0x45d116
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add esi, 0x1c
call fcn.0045e2c4
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.0045e2c4
push dword [eax]
lea ecx, [esp + 0x10]
call fcn.00450950
push eax
mov ecx, ebx
call dword [esi]
xor esi, esi
cmp byte [esp + 0xb], 0
je 0x45d12e
lea esi, [edi + 0x94]
lea ebx, [esp + 0xc]
call fcn.0044e690
xor esi, esi
lea eax, [edi + 0xa0]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00450d60
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 0x45d1f7
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.0045e197
cmp byte [0x505028], 0
je 0x45d1e8
call esi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.0045f4d4
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.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [esp + 0x20]
call fcn.004058a3
lea ecx, [esp + 0x1c]
call fcn.004058a3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
jmp 0x45d019
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov ebx, dword [edi + 0x70]
push esi
push esi
call fcn.0045e2c4
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45d242
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0045e197
cmp dword [esp + 0x28], 0
je 0x45d1f0
push dword [esp + 0x28]
jmp 0x45d1ea
push 0x10000
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call fcn.0043870c
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc0], esi
call fcn.0045e2c4
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
shr ebx, 1
and bl, 1
call fcn.0045e2c4
mov esi, dword [eax + 0xc]
and dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x45d298
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x45d362
mov eax, 0x10000
mov ecx, eax
cmp esi, eax
ja 0x45d2a5
mov ecx, esi
mov eax, dword [edi + 0x70]
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 0x45d32d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45d32d
test bl, bl
je 0x45d2da
mov edx, dword [esp + 0x14]
lea ecx, [edi + 0xb8]
call fcn.0046eeb7
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 0x45d32d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45d32d
add dword [esp + 0x1c], eax
sub esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45d325
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 0x45d283
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0045e2c4
push dword [esp + 0x14]
mov byte [eax + 0x1c], 1
call fcn.0049c876
xor esi, esi
pop ecx
cmp dword [esp + 0x28], esi
je 0x45d01a
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45d01a
push dword [esp + 0x14]
call fcn.0049c876
cmp dword [esp + 0x2c], 0
pop ecx
je 0x45d37d
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
jmp 0x45d019