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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624398
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6e4770]
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 edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x48281e
xor al, al
jmp 0x482b41
cmp dword [esi + 0x14], 8
jb 0x482828
mov eax, dword [esi]
jmp 0x48282a
mov eax, esi
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004766b0
test eax, eax
je 0x482b3f
mov ecx, edi
call fcn.004821b0
cmp edi, esi
je 0x482857
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
call fcn.00470350
push str.Thumbs.db
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00480f70
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x482b1b
xor eax, eax
mov dword [ebp - 0x80], 0
push 0x44
push eax
mov dword [ebp - 0x73], eax
mov word [ebp - 0x6f], ax
mov byte [ebp - 0x6d], al
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x74], 0
call fcn.0052f1e0
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
push 0x4c
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 0x4c
jae 0x482903
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Premature_end_of_file_encountered_while_reading_the_header._n
jmp 0x482b20
lea eax, [ebp - 0x74]
cmp dword [eax], 0xe011cfd0
jne 0x482b0d
cmp dword [eax + 4], 0xe11ab1a1
jne 0x482b0d
mov ebx, dword [ebp - 0x48]
cmp ebx, 0x7fffff
ja 0x482aff
cmp dword [ebp - 0x34], 0x7fffff
ja 0x482aff
mov eax, dword [ebp - 0x2c]
cmp eax, 0x810203
ja 0x482aff
cmp word [ebp - 0x5a], 4
jne 0x48295c
cmp word [ebp - 0x56], 0xc
mov ecx, 0x1000
je 0x482961
mov ecx, 0x200
movzx edx, cx
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, eax
mov eax, edx
shr eax, 2
dec eax
imul ecx, eax
lea eax, [ecx*4 + 0x1b4]
mov dword [0x6f23d4], eax
xor eax, eax
cmp eax, ebx
sbb eax, eax
and eax, ebx
imul eax, edx
mov dword [0x6f23d8], eax
xor eax, eax
cmp eax, dword [ebp - 0x34]
sbb eax, eax
and eax, dword [ebp - 0x34]
imul eax, edx
mov dword [0x6f23dc], eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [0x6f23dc]
xor ecx, ecx
add eax, dword [0x6f23d8]
add eax, dword [0x6f23d4]
cmp ecx, dword [ebp - 0x84]
jl 0x4829ea
jg 0x4829d9
cmp eax, dword [ebp - 0x88]
jbe 0x4829ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_total_sector_allocation_table_size_exceeds_the_size_of_the_database._n
jmp 0x482b20
push 0x23c
call fcn.0052f54b
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x208], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x20c], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x210], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x230], 0
mov eax, dword [ebp - 0x78]
mov word [eax + 0x234], cx
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x218], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x224], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x21c], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x220], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x228], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0x214], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x22c], eax
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0x104
push dword [ebp - 0x78]
call fcn.0053169f
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x78]
push esi
call fcn.00481ba0
cmp al, 2
je 0x482add
push dword [ebp - 0x78]
mov ecx, edi
push esi
call fcn.00481d10
cmp al, 2
je 0x482add
push dword [ebp - 0x78]
mov ecx, edi
push esi
call fcn.00481e40
cmp al, 2
je 0x482add
push dword [ebp - 0x78]
mov ecx, edi
push esi
call fcn.00481360
push dword [0x6f23e0]
call fcn.0052ee15
lea eax, [ebp - 0x78]
push eax
call fcn.00483170
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x482b2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_total_sector_allocation_table_size_is_too_large._n
jmp 0x482b20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_file_is_not_a_thumbs_database._n
jmp 0x482b20
push str.The_database_file_failed_to_open._n
call fcn.004812b0
add esp, 4
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x482b3b
push dword [ebp - 0x28]
call fcn.0052d900
add esp, 4
mov al, bl
jmp 0x482b41
mov al, 1
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.0052dfa4
mov esp, ebp
pop ebp
ret 4