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

Disassembly:
push 0x3cc
mov eax, 0x534a3e
call fcn.00505ab4
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.004b298e
call fcn.00498477
push eax
lea ecx, [ebp - 0x94]
call fcn.0049487c
and dword [ebp - 4], 0
call fcn.00498483
mov ecx, eax
call fcn.00495150
test al, al
je 0x4b2678
push ebx
lea ecx, [ebp - 0x94]
call fcn.00494af6
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call fcn.00494f9b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x4b25d4
push str.Error_opening_file
jmp 0x4b2707
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4b25ec
push ebx
push str.File_is_empty
jmp 0x4b2707
cmp edi, 0x400000
jbe 0x4b25ff
push ebx
push 0x53cbd4
jmp 0x4b2707
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.004e98c1
pop ecx
mov ebx, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x4b2659
push ebx
call fcn.0050157f
pop ecx
mov ecx, esi
call fcn.004b298e
push 0
push str.Could_not_read_file
jmp 0x4b2707
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004b2841
push dword [ebp - 0x3d8]
mov bl, al
call fcn.0050157f
pop ecx
jmp 0x4b2828
call fcn.00498483
push eax
lea ecx, [ebp - 0x94]
call fcn.00494ad9
call fcn.004986eb
test al, al
je 0x4b269b
call fcn.00498489
mov edi, eax
jmp 0x4b26fd
call fcn.0049848f
push eax
lea ecx, [ebp - 0x19c]
call fcn.0049487c
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00494f9b
push eax
call fcn.0049d666
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.00494f9b
push eax
call fcn.004b51c1
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4b26e8
push ebx
call fcn.0050157f
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004949a4
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x4b2715
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.004b29b9
mov bl, al
jmp 0x4b2828
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.004948a1
push 0x538e08
push 0x538e0c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0049531a
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00494f9b
push eax
push edi
call fcn.004b4b98
add esp, 0x14
test eax, eax
je 0x4b2775
push 0
push str.Could_not_find_ziped_file
jmp 0x4b27e3
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x4b2787
push ebx
push str.File_is_empty
jmp 0x4b27e3
cmp ebx, 0x400000
jbe 0x4b2798
push 0
push 0x53cbd4
jmp 0x4b27e3
push ebx
call fcn.004e98c1
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.004b55f8
add esp, 0x14
test eax, eax
je 0x4b27ee
cmp eax, 0x600
je 0x4b27ee
push dword [ebp - 0x3d0]
call fcn.0050157f
pop ecx
call fcn.004986eb
test al, al
jne 0x4b27dc
push edi
call fcn.004b4980
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004b29b9
mov bl, al
jmp 0x4b2819
call fcn.004986eb
test al, al
jne 0x4b27fe
push edi
call fcn.004b4980
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.004b2841
push edi
mov bl, al
call fcn.0050157f
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.004949a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004949a4
mov al, bl
call fcn.00505a63
ret 8