Function at 0x42b1bf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x650]
sub esp, 0x6d0
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x64c], eax
push ebx
push esi
push edi
mov edi, 0x208
push edi
xor ebx, ebx
lea eax, [ebp + 0x444]
push ebx
push eax
mov esi, ecx
call fcn.0042bbb0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x444]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...whitelist.dat
lea eax, [ebp + 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42b453
lea eax, [ebp + 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b453
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42b453
cmp dword [ebp - 0x80], 0x10
je 0x42b453
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
cmp dword [esi + 0x20], eax
jne 0x42b274
cmp dword [esi + 0x24], ecx
jne 0x42b274
xor eax, eax
jmp 0x42b456
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [esi + 0x20], eax
push SysReAllocString
lea eax, [ebp + 0x444]
push eax
mov dword [esi + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x42b453
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], ebx
jne 0x42b430
push 0x4550b8
push eax
call fcn.0042f9e6
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x42b2e4
mov dword [ebp - 0x18], 1
jmp 0x42b445
push ebx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b430
lea ecx, [esi + 8]
mov dword [ebp - 0x34], ecx
call fcn.0042ae40
push 0x10
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0042bbb0
mov esi, dword [ebp - 0x1c]
push 0x10
push esi
lea eax, [ebp - 0x44]
push 0x10
push eax
call fcn.0042bc2a
add esp, 0x1c
test eax, eax
jne 0x42b437
mov eax, 0x4c573351
cmp dword [ebp - 0x44], eax
jne 0x42b430
cmp dword [ebp - 0x3c], 2
jb 0x42b430
cmp dword [ebp - 0x38], ebx
jne 0x42b359
mov dword [ebp - 0x18], ebx
jmp 0x42b437
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
push ecx
push eax
add esi, 0x10
push esi
call fcn.0042a018
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.00412428
cmp dword [esi], ebx
jbe 0x42b41d
jmp 0x42b384
mov edi, 0x208
mov eax, dword [ebp - 0x28]
cmp dword [esi], eax
jae 0x42b41d
push edi
lea eax, [ebp + 0x23c]
push ebx
push eax
call fcn.0042bbb0
add esp, 0xc
lea eax, [esi + 4]
push eax
push edi
lea eax, [ebp + 0x23c]
push eax
call fcn.0042a300
lea eax, [ebp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x42b3cd
xor eax, eax
jmp 0x42b3e7
lea eax, [edi + edi]
call fcn.0042f610
mov eax, esp
push 3
push edi
lea ecx, [ebp + 0x23c]
push ecx
push eax
call fcn.00428110
push eax
lea ecx, [ebp - 0x24]
call fcn.0040bfd5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0042a9a7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
call fcn.0042b163
lea ecx, [ebp - 0x24]
call fcn.0040813c
add esi, dword [esi]
cmp dword [esi], ebx
ja 0x42b37f
lea ecx, [ebp - 0x5c]
call fcn.0040f5c0
push dword [ebp - 0x5c]
call fcn.0042bb90
pop ecx
jmp 0x42b437
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x1c], ebx
je 0x42b445
push dword [ebp - 0x1c]
call fcn.0042c033
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x42b456
xor eax, eax
inc eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64c]
xor ecx, ebp
call fcn.0042bb9b
add ebp, 0x650
leave
ret