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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52640b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4bd2b2
push eax
call fcn.004fdfef
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4bd2c2
push eax
call fcn.004fdfef
add esp, 4
lea eax, [ebp - 0x90]
mov dword [esi], 0
push 0xffffffffffffffff
mov dword [esi + 4], 0
lea ecx, [ebp - 0x98]
push dword [0x5651c4]
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x98], vtable.ui::CDuiString.0
mov word [ebp - 0x90], ax
call fcn.004523e0
mov dword [ebp - 4], 0
mov eax, dword [0x56513c]
cmp word [eax], 0
jne 0x4bd3ea
test ebx, ebx
je 0x4bd327
push ebx
lea ecx, [ebp - 0x98]
call fcn.004522b0
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bd358
push 0x63
push str.Error_opening_file
jmp 0x4bd4c5
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4bd373
push 0x63
push 0x5487dc
jmp 0x4bd4c5
cmp edi, 0x400000
jbe 0x4bd387
push 0x63
push str.File_too_large
jmp 0x4bd4c5
push edi
mov dword [ebp - 0x2d0], 0
call fcn.004e22d3
add esp, 4
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2d0]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x4bd3e3
mov edi, dword [ebp - 0x2cc]
push edi
call fcn.004e22c5
add esp, 4
mov ecx, esi
call fcn.004bd560
push 0x63
push str.Could_not_read_file
jmp 0x4bd4c5
push ecx
push edi
jmp 0x4bd4fd
push eax
lea ecx, [ebp - 0x98]
call fcn.004522b0
cmp byte [0x56e830], 0
je 0x4bd407
mov edi, dword [0x56e82c]
jmp 0x4bd41b
mov ecx, dword [ebp - 0x94]
xor edx, edx
push 2
call fcn.004749d0
add esp, 4
mov edi, eax
test edi, edi
jne 0x4bd42b
push 0x63
push str.Error_opening_zip_file
jmp 0x4bd4c5
lea eax, [ebp - 0x2c8]
mov edx, ebx
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, edi
call fcn.00474a50
add esp, 0xc
test eax, eax
je 0x4bd453
push 0x63
push str.Could_not_find_ziped_file
jmp 0x4bd4c5
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jne 0x4bd466
push 0x63
push 0x5487dc
jmp 0x4bd4c5
cmp ebx, 0x400000
jbe 0x4bd477
push 0x63
push str.File_too_large
jmp 0x4bd4c5
push ebx
call fcn.004e22d3
mov edx, dword [ebp - 0x2d0]
mov ecx, edi
push ebx
push eax
mov dword [ebp - 0x2cc], eax
call fcn.00474ba0
add esp, 0xc
test eax, eax
je 0x4bd4eb
cmp eax, 0x600
je 0x4bd4eb
push dword [ebp - 0x2cc]
call fcn.004e22c5
add esp, 4
cmp byte [0x56e830], 0
jne 0x4bd4be
mov ecx, edi
call fcn.00474bf0
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.00508740
add esp, 0xc
lea eax, [esi + 0xd8]
push 0x31
push 0x53cb10
push eax
call fcn.00508740
add esp, 0xc
xor bl, bl
jmp 0x4bd516
cmp byte [0x56e830], 0
jne 0x4bd4fb
mov ecx, edi
call fcn.00474bf0
push ecx
push ebx
mov edi, dword [ebp - 0x2cc]
mov ecx, esi
push edi
call fcn.004bd1b0
push edi
mov bl, al
call fcn.004e22c5
add esp, 4
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x4bd539
push eax
call fcn.004fdfef
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 8