Function at 0x4063f2
Capabilities:
Get disk size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4496bf
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x45b1d4]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x45b1d4]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov esi, edx
je 0x4064a4
cmp esi, edi
je 0x4064a4
mov eax, dword [eax + 0x2c]
cmp eax, edi
je 0x406458
push esi
push ecx
call eax
pop ecx
pop ecx
jmp 0x4064a6
push 0x3a
push esi
call fcn.0042fc4e
cmp eax, edi
pop ecx
pop ecx
je 0x4064a4
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
mov ebx, eax
sub ebx, esi
sar ebx, 1
inc ebx
push esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x2cc], edi
call fcn.00401cd1
cmp dword [esp + 0x7c], edi
jne 0x4064cc
push edi
push 1
lea esi, [esp + 0x70]
call fcn.004022b6
xor eax, eax
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0042d4ab
mov esp, ebp
pop ebp
ret 4
push dword [esp + 0x10]
call fcn.0040e4e3
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [esp + 0x14], ebx
jne 0x4064f9
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push str.open_zip_file_failed__s_.
push 2
call fcn.00409217
add esp, 0xc
jmp 0x406498
push 0xffffffffffffffff
lea ecx, [esp + 0x88]
call fcn.0040e592
cmp eax, edi
pop ecx
je 0x40652a
mov esi, dword [esp + 0x18]
push str.get_zip_item_file_failed.
push 2
call fcn.00409217
pop ecx
pop ecx
mov esi, ebx
call fcn.0040e602
jmp 0x406498
mov eax, esi
lea ecx, [esp + 0x4c]
call fcn.00401c6e
xor ebx, ebx
inc ebx
mov byte [esp + 0x2c8], bl
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
jle 0x4066de
mov esi, dword [esp + 0x14]
push dword [esp + 0x10]
lea ecx, [esp + 0x88]
mov eax, esi
call fcn.0040e592
test eax, eax
pop ecx
jne 0x406704
test byte [esp + 0x290], 0x10
jne 0x4066cc
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x40659d
lea eax, [esp + 0x6c]
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40671f
mov eax, dword [esp + 0x2b0]
mov ecx, dword [esp + 0x28]
cdq
cmp ecx, edx
jb 0x406736
ja 0x4065d5
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jb 0x406736
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00401cb3
cmp dword [esp + 0x2b0], edi
jne 0x40662b
cmp dword [esp + 0x64], 8
mov ecx, dword [esp + 0x50]
jae 0x4065ff
lea ecx, [esp + 0x50]
mov esi, dword [esp + 0x18]
push esi
call fcn.00406cbc
test eax, eax
jne 0x4066cc
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x406620
lea eax, [esp + 0x50]
push eax
push str.create_empty_file_failed__s_.
jmp 0x406711
cmp dword [esp + 0x64], 8
mov ebx, dword [esp + 0x50]
jae 0x40663a
lea ebx, [esp + 0x50]
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00407327
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x406654
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
call fcn.0040e5d1
pop ecx
test eax, eax
mov eax, dword [esp + 0x54]
pop ecx
jne 0x40674a
cmp dword [esp + 0x64], 8
jae 0x40667b
lea eax, [esp + 0x50]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
call fcn.00401dd0
push dword [esp + 0x20]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x54]
call fcn.00401db0
call fcn.0040277c
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
call fcn.00405da5
xor ebx, ebx
inc ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jl 0x40655e
mov esi, dword [esp + 0x14]
call fcn.0040e602
push edi
push ebx
lea esi, [esp + 0x54]
call fcn.004022b6
push edi
push ebx
lea esi, [esp + 0x70]
call fcn.004022b6
mov eax, ebx
jmp 0x4064a6
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push str.get_zip_item__d__file_failed.
push 2
call fcn.00409217
add esp, 0xc
mov esi, dword [esp + 0x14]
call fcn.0040e602
push edi
push ebx
lea esi, [esp + 0x54]
call fcn.004022b6
push edi
push ebx
jmp 0x40649b
mov esi, dword [esp + 0x18]
push str.unzip_failed__not_enough_disk_space.
push 2
call fcn.00409217
pop ecx
pop ecx
jmp 0x40671b
cmp dword [esp + 0x64], 8
jae 0x406755
lea eax, [esp + 0x50]
push eax
push str.unzip_file_failed__s_.
push 2
call fcn.00409217
mov esi, dword [esp + 0x20]
add esp, 0xc
call fcn.0040e602
push edi
push 1
lea esi, [esp + 0x54]
call fcn.004022b6
jmp 0x406498