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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca7e7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
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 - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jne 0x4bad70
mov dword [ebp - 0x24], 0xc0000003
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x24]
jmp 0x4bafd9
push 0x4efe18
lea eax, [ebp + 8]
push eax
call fcn.00409570
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4bad95
push str.data_swmeter_rules.xml
lea ecx, [ebp + 8]
call fcn.004075f0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0
push 2
push 4
push 0
push 0
push SQLAllocStmt
lea ecx, [ebp + 8]
call fcn.00402650
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4badf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4efe34
call fcn.00423db0
add esp, 8
mov dword [ebp - 0x28], 0xc0000005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x28]
jmp 0x4bafd9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4bae52
cmp dword [ebp - 0x18], 0xffffffff
je 0x4bae20
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4efe5c
call fcn.00423db0
add esp, 8
mov dword [ebp - 0x2c], 0xc0000006
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x2c]
jmp 0x4bafd9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
mov eax, dword [ecx]
or eax, dword [edx + 4]
jne 0x4bae9a
cmp dword [ebp - 0x18], 0xffffffff
je 0x4bae7c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0xc0000004
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x30]
jmp 0x4bafd9
mov edx, dword [ebp + 0x10]
push 0
push 2
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
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 + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
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 + 0xc]
mov eax, dword [edx]
push eax
call fcn.00402b30
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4baf20
jmp 0x4baf72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x26
je 0x4baf72
mov ecx, dword [ebp - 0x20]
push ecx
push 0x4efe84
call fcn.00423db0
add esp, 8
cmp dword [ebp - 0x18], 0xffffffff
je 0x4baf57
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0xc0000007
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x38]
jmp 0x4bafd9
cmp dword [ebp - 0x18], 0xffffffff
je 0x4baf89
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x3c]
jmp 0x4bafd9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret