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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cafe6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x4f56e0
lea ecx, [ebp - 0x1c]
call fcn.00401e50
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
cmp dword [ebp + 8], 0
jne 0x4bf4b9
mov dword [ebp - 0x24], 0xc0000003
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x24]
jmp 0x4bf7f0
push 0x4f56e4
lea eax, [ebp + 0x10]
push eax
call fcn.00404190
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4bf503
mov edx, dword [ebp - 0x44]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.00403fc0
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.00409290
mov ecx, dword [ebp - 0x44]
add ecx, 8
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403fc0
jmp 0x4bf512
mov edx, dword [ebp - 0x44]
add edx, 0x14
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403fc0
mov eax, dword [ebp - 0x1c]
push eax
push str.Reading_File_is__ws_n
call fcn.00423db0
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
push 0
push 2
push 4
push 0
push 0
push SQLAllocStmt
lea ecx, [ebp - 0x1c]
call fcn.00402650
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x34], 0xffffffff
jne 0x4bf597
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f5700
call fcn.00423db0
add esp, 8
mov dword [ebp - 0x28], 0xc0000005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x28]
jmp 0x4bf7f0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4bf60a
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x34], 0xffffffff
je 0x4bf5cc
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x34], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_Get_a_FileSize_errcode_:__ld_n
call fcn.00423db0
add esp, 8
mov dword [ebp - 0x2c], 0xc0000006
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x2c]
jmp 0x4bf7f0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax]
or edx, dword [ecx + 4]
jne 0x4bf667
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x34], 0xffffffff
je 0x4bf63d
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xc0000004
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x30]
jmp 0x4bf7f0
mov ecx, dword [ebp + 0xc]
push 0
push 2
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.004969e0
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048dbc3
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
push 0
push 2
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call fcn.004969e0
add eax, 1
adc edx, 0
push eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00402b30
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bf6f0
jmp 0x4bf75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x26
je 0x4bf75a
mov edx, dword [ebp - 0x20]
push edx
push str.ReadFileKeyVal::Error_in_Read_File___errorCode____d_n
call fcn.00423db0
add esp, 8
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x34], 0xffffffff
je 0x4bf730
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x34], 0xffffffff
mov dword [ebp - 0x38], 0xc0000007
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x38]
jmp 0x4bf7f0
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x34], 0xffffffff
je 0x4bf77a
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x34], 0xffffffff
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x3c]
jmp 0x4bf7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc