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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6b88
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x51b08c]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x4c530e
xor al, al
jmp 0x4c5618
cmp dword [esi + 0x14], 8
jb 0x4c5318
mov eax, dword [esi]
jmp 0x4c531a
mov eax, esi
cmp dword [ebx + 0x14], 8
jb 0x4c5322
mov ecx, dword [ebx]
push edx
push eax
push dword [ebx + 0x10]
push ecx
call fcn.00405470
add esp, 0x10
test eax, eax
je 0x4c5616
mov ecx, ebx
call fcn.004c7300
cmp ebx, esi
je 0x4c534f
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00403430
push str.Thumbs.db
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.004077a0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push 0
cmovae eax, dword [ebp - 0x34]
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c55d3
push 0x4c
lea eax, [ebp - 0x80]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004a35f0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4c
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], 0x4c
jae 0x4c53e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Premature_end_of_file_encountered_while_reading_the_header.
jmp 0x4c55d8
lea eax, [ebp - 0x80]
cmp dword [eax], 0xe011cfd0
jne 0x4c55c5
cmp dword [eax + 4], 0xe11ab1a1
jne 0x4c55c5
mov edi, dword [ebp - 0x54]
cmp edi, 0x7fffff
ja 0x4c55b7
cmp dword [ebp - 0x40], 0x7fffff
ja 0x4c55b7
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x810203
ja 0x4c55b7
cmp word [ebp - 0x66], 4
jne 0x4c5440
cmp word [ebp - 0x62], 0xc
mov eax, 0x1000
je 0x4c5445
mov eax, 0x200
mov dword [ebp - 0x84], eax
movzx edx, ax
xor eax, eax
cmp eax, ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x38]
lea eax, [edx - 4]
imul ecx, eax
xor eax, eax
add ecx, 0x1b4
cmp eax, edi
mov dword [0x51f2f8], ecx
sbb eax, eax
and eax, edi
imul eax, edx
mov dword [0x51f2f4], eax
xor eax, eax
cmp eax, dword [ebp - 0x40]
sbb eax, eax
and eax, dword [ebp - 0x40]
imul eax, edx
mov dword [0x51f2f0], eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [0x51f2f0]
xor ecx, ecx
add eax, dword [0x51f2f4]
add eax, dword [0x51f2f8]
cmp ecx, dword [ebp - 0x18]
jl 0x4c54c6
jg 0x4c54b5
cmp eax, dword [ebp - 0x1c]
jbe 0x4c54c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_total_sector_allocation_table_size_exceeds_the_size_of_the_database.
jmp 0x4c55d8
push 0x23c
call fcn.004a8f05
mov edi, eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], edi
mov dword [edi + 0x208], 0
mov dword [edi + 0x20c], 0
mov dword [edi + 0x210], 0
mov dword [edi + 0x230], 0
mov word [edi + 0x234], ax
mov ecx, dword [ebp - 0x50]
mov dword [edi + 0x218], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x224], ecx
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x21c], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x220], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x228], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x214], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x22c], eax
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
push 0x104
push edi
call fcn.004ac840
add esp, 0x10
mov ecx, esi
push edi
call fcn.004c5640
cmp al, 2
je 0x4c5593
push edi
mov ecx, esi
call fcn.004c5810
cmp al, 2
je 0x4c5593
push edi
mov ecx, esi
call fcn.004c5970
cmp al, 2
je 0x4c5593
push edi
push esi
mov ecx, ebx
call fcn.004c5b90
push dword [0x51f2ec]
call fcn.004a51e5
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.004c7b70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4c55e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_total_sector_allocation_table_size_is_too_large.
jmp 0x4c55d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.The_file_is_not_a_thumbs_database.
jmp 0x4c55d8
push str.The_database_file_failed_to_open.
call fcn.004076b0
add esp, 4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x4c55fe
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00403800
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov al, bl
mov dword [ebp - 0x24], 0
jmp 0x4c5618
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.00499a52
mov esp, ebp
pop ebp
ret 4