Function at 0x491280
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6099b6
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [ebp - 0x2c8]
call fcn.00491b30
call fcn.0045caf0
push eax
lea ecx, [ebp - 0x94]
call fcn.00467100
mov dword [ebp - 4], 0
call fcn.0045cb10
mov ecx, eax
call fcn.00468a10
movzx eax, al
test eax, eax
je 0x49154a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00467cb0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00467940
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0xffffffff
jne 0x491362
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2ca], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2ca]
jmp 0x49186a
push 0
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
jne 0x4913b5
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2cb], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2cb]
jmp 0x49186a
cmp dword [ebp - 0x2dc], 0x400000
jbe 0x4913f6
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2cc], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2cc]
jmp 0x49186a
mov dword [ebp - 0x2f8], 0
push 0x687ae0
mov eax, dword [ebp - 0x2dc]
add eax, 8
push eax
call fcn.00537115
add esp, 8
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x2e8], ecx
mov edx, dword [ebp - 0x2dc]
add edx, 8
push edx
push 0
mov eax, dword [ebp - 0x2e8]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0
lea ecx, [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f8]
cmp eax, dword [ebp - 0x2dc]
je 0x4914de
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.00536df8
add esp, 4
mov ecx, dword [ebp - 0x2c8]
call fcn.00491b30
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2cd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2cd]
jmp 0x49186a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
mov ecx, dword [ebp - 0x2c8]
call fcn.00491890
mov byte [ebp - 0x2ce], al
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.00536df8
add esp, 4
mov dl, byte [ebp - 0x2ce]
mov byte [ebp - 0x2cf], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2cf]
jmp 0x49186a
call fcn.0045cb10
push eax
lea ecx, [ebp - 0x94]
call fcn.00467bf0
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e4], 0
call fcn.0045ce30
movzx eax, al
test eax, eax
je 0x49178d
call fcn.0045cb20
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2f4], 0
jne 0x4915cf
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d0], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d0]
jmp 0x49186a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.0040ec80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.0048f8c0
add esp, 0x10
test eax, eax
jne 0x491616
mov dword [ebp - 0x2fc], 1
jmp 0x491620
mov dword [ebp - 0x2fc], 0
mov al, byte [ebp - 0x2fc]
mov byte [ebp - 0x2d1], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0040ebb0
movzx ecx, byte [ebp - 0x2d1]
test ecx, ecx
je 0x49167b
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d2], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d2]
jmp 0x49186a
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x2e4], edx
cmp dword [ebp - 0x2e4], 0
jne 0x4916c7
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d3], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d3]
jmp 0x49186a
cmp dword [ebp - 0x2e4], 0x400000
jbe 0x491708
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d4], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d4]
jmp 0x49186a
push 0x687ae0
mov eax, dword [ebp - 0x2e4]
push eax
call fcn.00537115
add esp, 8
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2e4]
push edx
mov eax, dword [ebp - 0x2ec]
push eax
mov ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.0048f590
add esp, 0x10
test eax, eax
jne 0x49178b
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d5], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d5]
jmp 0x49186a
jmp 0x4917f4
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x94]
call fcn.00468660
push eax
call fcn.004a5730
add esp, 0x10
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jge 0x4917f4
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00491bb0
mov byte [ebp - 0x2d6], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2d6]
jmp 0x49186a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2e4]
push ecx
mov edx, dword [ebp - 0x2ec]
push edx
mov ecx, dword [ebp - 0x2c8]
call fcn.00491890
mov byte [ebp - 0x2c9], al
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.00536df8
add esp, 4
mov dl, byte [ebp - 0x2c9]
mov byte [ebp - 0x2dd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00467590
mov al, byte [ebp - 0x2dd]
jmp 0x49186a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 8