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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582e9b
mov eax, dword fs:[0]
push eax
sub esp, 0x334
push esi
push edi
push ecx
lea edi, [ebp - 0x340]
mov ecx, 0xcd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x5ddc34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004123a0
call fcn.00406810
push eax
lea ecx, [ebp - 0x9c]
call fcn.00403b60
mov dword [ebp - 4], 0
call fcn.00406820
mov ecx, eax
call fcn.00403e40
movzx eax, al
test eax, eax
je 0x412049
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00404580
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x9c]
call fcn.00403c20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x411e78
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x312], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x312]
jmp 0x41230c
mov esi, esp
push 0
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x411ed1
push 0
push 0x597844
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x313], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x313]
jmp 0x41230c
cmp dword [ebp - 0xa8], 0x400000
jbe 0x411f0f
push 0
push 0x597860
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x314], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x314]
jmp 0x41230c
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0xb8], ecx
mov esi, esp
push 0
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004f4cf0
mov esi, esp
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f4cf0
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0xa8]
je 0x411fe0
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x31c], edx
mov eax, dword [ebp - 0x31c]
push eax
call fcn.004f9cb0
add esp, 4
mov ecx, dword [ebp - 0x14]
call fcn.004123a0
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x31d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x31d]
jmp 0x41230c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00411ae0
mov byte [ebp - 0xb9], al
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x324]
push edx
call fcn.004f9cb0
add esp, 4
mov al, byte [ebp - 0xb9]
mov byte [ebp - 0x325], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x325]
jmp 0x41230c
call fcn.00406820
push eax
lea ecx, [ebp - 0x9c]
call fcn.00404540
mov dword [ebp - 0xc0], 0
call fcn.00406830
movzx ecx, al
test ecx, ecx
je 0x41207d
call fcn.00406840
mov dword [ebp - 0xc0], eax
jmp 0x41209b
push 2
push 0
lea ecx, [ebp - 0x9c]
call fcn.00403ec0
push eax
call fcn.00425ef0
add esp, 0xc
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x4120d6
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x326], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x326]
jmp 0x41230c
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0x300]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
call fcn.00426270
add esp, 0x14
test eax, eax
je 0x41212f
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x327], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x327]
jmp 0x41230c
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x412176
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x328], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x328]
jmp 0x41230c
cmp dword [ebp - 0x308], 0x400000
jbe 0x4121b4
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x329], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x329]
jmp 0x41230c
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x330], eax
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x30c], edx
push 3
mov eax, dword [ebp - 0x308]
push eax
mov ecx, dword [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x300]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.004263e0
add esp, 0x14
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x41227e
cmp dword [ebp - 0x310], 0x600
je 0x41227e
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
push edx
call fcn.004f9cb0
add esp, 4
call fcn.00406830
movzx eax, al
test eax, eax
jne 0x41224c
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.00426470
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x14]
call fcn.004130a0
mov byte [ebp - 0x335], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x335]
jmp 0x41230c
call fcn.00406830
movzx edx, al
test edx, edx
jne 0x412299
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00426470
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x308]
push edx
mov eax, dword [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00411ae0
mov byte [ebp - 0x311], al
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x33c], ecx
mov edx, dword [ebp - 0x33c]
push edx
call fcn.004f9cb0
add esp, 4
mov al, byte [ebp - 0x311]
mov byte [ebp - 0x33d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00403bb0
mov al, byte [ebp - 0x33d]
jmp 0x41230c
push edx
mov ecx, ebp
push eax
lea edx, [0x412348]
call fcn.004f4c90
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4d70
add esp, 0x340
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret 8