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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dadfb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x5133d4]
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 0x451072
push eax
call fcn.004ad0fb
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x451082
push eax
call fcn.004ad0fb
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004288f0
push eax
lea ecx, [ebp - 0x94]
call fcn.004221e0
mov dword [ebp - 4], 0
call fcn.00428900
mov ecx, eax
call fcn.00422e30
test al, al
je 0x451182
push ebx
lea ecx, [ebp - 0x94]
call fcn.004225e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4510fe
push 0x63
push str.Error_opening_file
jmp 0x451361
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4512f9
cmp edi, 0x400000
ja 0x45130a
push edi
mov dword [ebp - 0x2cc], 0
call fcn.00490324
add esp, 4
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x2cc]
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 - 0x2cc], edi
je 0x451179
mov edi, dword [ebp - 0x2c8]
push edi
call fcn.0048ffe3
add esp, 4
mov ecx, esi
call fcn.00450c60
push 0x63
push str.Could_not_read_file
jmp 0x451361
push dword [ebp + 0xc]
push edi
jmp 0x45139a
call fcn.00428bc0
test al, al
jne 0x451276
call fcn.00428900
push eax
lea ecx, [ebp - 0x94]
call fcn.004225c0
call fcn.00428b70
test al, al
je 0x4511b0
call fcn.00428910
jmp 0x4511c8
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call fcn.0043f970
add esp, 0xc
mov edi, eax
test edi, edi
je 0x4512b3
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0043f280
add esp, 0x14
test eax, eax
jne 0x4512e6
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x4512f9
cmp ebx, 0x400000
ja 0x45130a
push ebx
call fcn.00490324
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0043fe00
add esp, 0x18
test eax, eax
je 0x45125e
cmp eax, 0x600
je 0x45125e
push dword [ebp - 0x2c8]
call fcn.0048ffe3
add esp, 4
call fcn.00428b70
test al, al
jne 0x45135a
push edi
call fcn.0043f060
jmp 0x451357
call fcn.00428b70
test al, al
jne 0x451396
push edi
call fcn.0043f060
jmp 0x451393
call fcn.00428900
push eax
lea ecx, [ebp - 0x94]
call fcn.004225c0
call fcn.00428b70
test al, al
je 0x451297
call fcn.00428910
jmp 0x4512ad
push 0
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call fcn.00443f30
add esp, 8
mov edi, eax
test edi, edi
jne 0x4512bf
push 0x63
push str.Error_opening_zip_file
jmp 0x451361
lea eax, [ebp - 0x2d4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x2cc]
movlpd qword [ebp - 0x2d4], xmm0
push eax
push ebx
push edi
call fcn.00443730
add esp, 0x10
test eax, eax
je 0x4512ef
push 0x63
push str.Could_not_find_ziped_file
jmp 0x451361
mov ebx, dword [ebp - 0x2d4]
test ebx, ebx
jne 0x451302
push 0x63
push str.File_is_empty
jmp 0x451361
cmp ebx, 0x400000
jbe 0x451313
push 0x63
push str.File_too_large
jmp 0x451361
push ebx
call fcn.00490324
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004440a0
add esp, 0x10
test eax, eax
je 0x451384
cmp eax, 0x600
je 0x451384
push dword [ebp - 0x2c8]
call fcn.0048ffe3
add esp, 4
call fcn.00428b70
test al, al
jne 0x45135a
push edi
call fcn.00443640
add esp, 4
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.004b504b
push 0x31
lea eax, [esi + 0xd8]
push 0x4fe290
push eax
call fcn.004b504b
add esp, 0x18
xor bl, bl
jmp 0x4513b3
call fcn.00428b70
test al, al
jne 0x451396
push edi
call fcn.00443640
add esp, 4
push dword [ebp + 0xc]
push ebx
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push edi
call fcn.004513e0
push edi
mov bl, al
call fcn.0048ffe3
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.00422340
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.0048fcf2
mov esp, ebp
pop ebp
ret 8