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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [edi + 0x78]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.0047a505
mov ebx, eax
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x20], ebx
je 0x478bf8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0047a505
mov eax, dword [eax + 4]
mov ecx, edi
call fcn.00479d5e
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403ccd
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0047a505
add eax, 0x18
push eax
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x1c]
call fcn.00476235
mov esi, dword [ebx + 0xc]
pop ecx
pop ecx
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
call fcn.00405d46
lea ecx, [esp + 0x24]
call fcn.0046a3d0
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x24]
inc bl
call fcn.004036cd
test bl, bl
je 0x478c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
push 0x104
push edi
mov ebx, eax
call fcn.00479d25
push 0xe
pop esi
lea ecx, [esp + 0xc]
call fcn.004036cd
lea ecx, [esp + 0x14]
call fcn.004036cd
mov eax, esi
jmp 0x478bf0
mov ecx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push esi
call fcn.0048cc16
pop ecx
pop ecx
test al, al
jne 0x478d24
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x478cc3
mov eax, dword [ecx]
push ebx
push esi
push dword [esp + 0x1c]
call dword [eax]
test eax, eax
jne 0x478d24
cmp byte [0x5457ac], bl
je 0x478d1d
mov eax, dword [esp + 0x20]
add eax, 0x18
push eax
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x1c]
call fcn.00476235
pop ecx
pop ecx
push dword [eax]
lea eax, [esp + 0x28]
push str.Not_enough_disk_space_to_extract_file:
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [esp + 0x24]
call fcn.004036cd
lea ecx, [esp + 0x20]
call fcn.004036cd
push 0xa
jmp 0x478c7e
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0047a505
cmp dword [eax + 4], 0xc
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
sete byte [esp + 0xb]
xor ebx, ebx
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x478d85
mov ebx, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add ebx, 0x1c
call fcn.0047a505
push 0
push dword [eax + 0xc]
mov ecx, esi
call dword [ebx]
mov ebx, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add ebx, 0x14
call fcn.0047a505
push dword [eax]
lea ecx, [esp + 0x10]
call fcn.00469bb0
push eax
mov ecx, esi
call dword [ebx]
xor ebx, ebx
cmp byte [esp + 0xb], 0
je 0x478da1
lea esi, [edi + 0xa4]
lea ebx, [esp + 0xc]
call fcn.00466770
mov esi, dword [esp + 0x24]
xor ebx, ebx
lea eax, [edi + 0xb0]
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00469fc0
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x478e6a
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.00479d25
cmp byte [0x5457ac], 0
je 0x478e5b
call esi
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
call fcn.004664f0
pop ecx
push dword [eax]
lea eax, [esp + 0x28]
push str._Error:
push dword [esp + 0x14]
push str.Failed_to_extract_file:
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [esp + 0x24]
call fcn.004036cd
lea ecx, [esp + 0x20]
call fcn.004036cd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
jmp 0x478c7e
mov eax, dword [edi + 0x58]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
call fcn.0047a505
mov eax, dword [eax + 0x10]
xor ecx, ecx
add eax, dword [esp + 0x28]
push ebx
adc ecx, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x478ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x60]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.00479d25
cmp dword [esp + 0x30], 0
je 0x478e63
push dword [esp + 0x30]
jmp 0x478e5d
push 0x10000
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
call fcn.0044bfe0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xd0], ebx
call fcn.0047a505
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
shr ebx, 1
and bl, 1
call fcn.0047a505
mov eax, dword [eax + 0xc]
and dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
test esi, esi
je 0x478f2e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test al, al
jne 0x478ff4
mov ecx, dword [esp + 0x20]
mov eax, 0x10000
cmp ecx, eax
jbe 0x478f3d
mov ecx, eax
mov eax, dword [edi + 0x84]
push 0
lea edx, [esp + 0x20]
push edx
push ecx
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x478fbf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x478fbf
test bl, bl
je 0x478f75
mov edx, dword [esp + 0x18]
lea ecx, [edi + 0xc8]
call fcn.0048dc84
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x478fbf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x478fbf
sub dword [esp + 0x20], eax
add dword [esp + 0x24], eax
test esi, esi
je 0x478fb4
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp dword [esp + 0x20], 0
jg 0x478f1b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call fcn.0047a505
push dword [esp + 0x18]
mov byte [eax + 0x1c], 1
call fcn.004c8958
xor esi, esi
pop ecx
cmp dword [esp + 0x30], esi
je 0x478c7f
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478c7f
push dword [esp + 0x18]
call fcn.004c8958
cmp dword [esp + 0x34], 0
pop ecx
je 0x47900f
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
jmp 0x478c7e