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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c196
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x546330]
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.00452fa0
call fcn.00421aa0
push eax
lea ecx, [ebp - 0x94]
call fcn.00429150
mov dword [ebp - 4], 0
call fcn.00421ac0
mov ecx, eax
call fcn.0042a1f0
movzx eax, al
test eax, eax
je 0x4529ba
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00429720
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00421a30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0xffffffff
jne 0x4527d2
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2ca], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2ca]
jmp 0x452cda
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 0x452825
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2cb], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2cb]
jmp 0x452cda
cmp dword [ebp - 0x2dc], 0x400000
jbe 0x452866
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2cc], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2cc]
jmp 0x452cda
mov dword [ebp - 0x2f8], 0
push 0x5239b8
mov eax, dword [ebp - 0x2dc]
add eax, 8
push eax
call fcn.004be1d9
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.004e2580
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 0x45294e
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.004bda26
add esp, 4
mov ecx, dword [ebp - 0x2c8]
call fcn.00452fa0
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2cd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2cd]
jmp 0x452cda
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.00452d00
mov byte [ebp - 0x2ce], al
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.004bda26
add esp, 4
mov dl, byte [ebp - 0x2ce]
mov byte [ebp - 0x2cf], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2cf]
jmp 0x452cda
call fcn.00421ac0
push eax
lea ecx, [ebp - 0x94]
call fcn.004296f0
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e4], 0
call fcn.00421d20
movzx eax, al
test eax, eax
je 0x452bfd
call fcn.00421ad0
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2f4], 0
jne 0x452a3f
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d0], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d0]
jmp 0x452cda
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00405160
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.0044df20
add esp, 0x10
test eax, eax
jne 0x452a86
mov dword [ebp - 0x2fc], 1
jmp 0x452a90
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.004050b0
movzx ecx, byte [ebp - 0x2d1]
test ecx, ecx
je 0x452aeb
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d2], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d2]
jmp 0x452cda
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x2e4], edx
cmp dword [ebp - 0x2e4], 0
jne 0x452b37
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d3], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d3]
jmp 0x452cda
cmp dword [ebp - 0x2e4], 0x400000
jbe 0x452b78
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d4], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d4]
jmp 0x452cda
push 0x5239b8
mov eax, dword [ebp - 0x2e4]
push eax
call fcn.004be1d9
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.0044dd30
add esp, 0x10
test eax, eax
jne 0x452bfb
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d5], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d5]
jmp 0x452cda
jmp 0x452c64
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.00421a30
push eax
call fcn.0045e490
add esp, 0x10
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jge 0x452c64
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call fcn.00453000
mov byte [ebp - 0x2d6], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2d6]
jmp 0x452cda
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.00452d00
mov byte [ebp - 0x2c9], al
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.004bda26
add esp, 4
mov dl, byte [ebp - 0x2c9]
mov byte [ebp - 0x2dd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004293e0
mov al, byte [ebp - 0x2dd]
jmp 0x452cda
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 8