Function at 0x1001ba90
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100902e8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov dword [ebp - 0x394], ebx
mov dword [ebp - 0x398], ebx
mov eax, dword [0x100e2810]
mov dword [ebp - 0x390], eax
mov dword [ebp - 0x380], 0xffffffff
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x378], 0
push 0x358
push 0
lea eax, [ebp - 0x374]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x380], eax
cmp eax, 0xffffffff
jne 0x1001bb6c
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
xor eax, eax
jmp 0x1001c04e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 0x2c]
push ecx
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 0x37c], edi
mov esi, edi
test edi, edi
jne 0x1001bc3c
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001bbc2
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001bc1f
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x1001bbfe
mov byte [esi + 0xffff], 0
push esi
push str.UpdateExclusions
push 1
mov edx, 0x38b
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001bc16
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x1001c04e
push 0
lea eax, [ebp - 0x38c]
push eax
push ebx
push edi
mov eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x384], eax
test eax, eax
je 0x1001beb6
cmp dword [ebp - 0x38c], ebx
jne 0x1001beb6
mov dword [ebp - 0x378], 0
shr ebx, 1
mov dword [ebp - 0x39c], ebx
mov eax, ebx
mov dword [ebp - 0x388], eax
test eax, eax
je 0x1001bdd8
push eax
push esi
call fcn.10051b84
add esp, 8
cmp eax, 0x11
jb 0x1001bdd8
lea eax, [edi + ebx*2]
cmp esi, eax
jae 0x1001bdd8
push 0xa
push esi
call fcn.1005204d
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x1001bdd8
mov edx, ebx
sub edx, esi
sar edx, 1
or ecx, 0xffffffff
sub ecx, edx
add dword [ebp - 0x388], ecx
xor eax, eax
mov word [ebx], ax
mov word [esi + 0x40], ax
push esi
push 0x22
lea eax, [ebp - 0x36c]
push eax
call fcn.10053320
push 0
lea edx, [ebp - 0x378]
mov ecx, dword [ebp - 0x390]
call fcn.10021180
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x384], edi
test edi, edi
je 0x1001bdbe
cmp edi, 2
je 0x1001bdbe
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001bd48
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001bda4
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001bd83
mov byte [esi + 0xffff], 0
push esi
push str.UpdateExclusions
push 1
mov edx, 0x3a0
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001bd9b
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, edi
jmp 0x1001c04e
lea esi, [ebx + 2]
mov edi, dword [ebp - 0x37c]
mov eax, dword [ebp - 0x388]
mov ebx, dword [ebp - 0x39c]
jmp 0x1001bc88
mov ecx, dword [ebp - 0x390]
call fcn.1001c070
mov ebx, eax
mov dword [ebp - 0x384], ebx
test ebx, ebx
je 0x1001be96
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001be20
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001be7c
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1001be5b
mov byte [esi + 0xffff], 0
push esi
push str.UpdateExclusions
push 1
mov edx, 0x3a7
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001be73
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, ebx
jmp 0x1001c04e
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x394]
call fcn.1001bf75
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1001c04e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001bef2
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001bf4e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001bf2d
mov byte [esi + 0xffff], 0
push esi
push str.UpdateExclusions
push 1
mov edx, 0x38f
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001bf45
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x1001c04e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret