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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434e11
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5d4], ebx
test ecx, ecx
je 0x40dff9
mov eax, dword [ecx + 4]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0xc]
push ecx
call eax
mov ecx, dword [edi + 0x10]
add esp, 4
test ecx, ecx
jne 0x40dfe3
mov dword [edi + 0x10], 0
cmp byte [edi + 0x1c], 0
mov dword [edi + 0x18], 0
jne 0x40e196
mov ecx, str.ReadConfig
call fcn.0040a1d0
mov dword [ebp - 0x5fc], 0
mov dword [ebp - 0x5f8], 0
mov dword [ebp - 0x5f4], 0
mov dword [ebp - 0x5ec], fcn.0041ff0e
mov dword [ebp - 0x5e8], fcn.0041fc6d
mov dword [ebp - 0x5e4], fcn.0041fd4b
mov dword [ebp - 0x5e0], 0
mov dword [ebp - 0x5dc], 0x1fff8
mov dword [ebp - method.common::allocator_unsigned_char__class_common::TAllocDefault_.virtual_0], vtable.common::t_heap.0
mov dword [ebp - 0x5d8], 0
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x49c]
push 0
push esi
call fcn.00407d90
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x49c]
lea ecx, [ebp - 0x5fc]
push eax
push ebx
call fcn.004128a0
mov byte [ebp - 4], 0
cmp byte [ebp - 0x380], 0
mov byte [ebp - 0x5c5], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40e0e7
mov ecx, dword [ebp - 0x494]
lea eax, [ebp - 0x490]
cmp ecx, eax
je 0x40e0e7
push ecx
call fcn.0041fd4b
add esp, 4
call fcn.0040a260
cmp byte [ebp - 0x5c5], 0
jne 0x40e146
push 0x447370
mov ecx, ebx
call fcn.00402750
mov eax, dword [ebp - 0x5fc]
test eax, eax
je 0x40e114
push eax
call fcn.0041fd4b
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x5e0]
test eax, eax
je 0x40e13f
mov edi, dword [ebp - 0x5e4]
nop dword [eax + eax]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40e130
xor al, al
jmp 0x40e444
lea eax, [ebp - 0x5fc]
mov ecx, edi
push eax
call fcn.0040e7e0
mov eax, dword [ebp - 0x5fc]
test eax, eax
je 0x40e167
push eax
call fcn.0041fd4b
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5e0]
test eax, eax
je 0x40e442
mov edi, dword [ebp - 0x5e4]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40e182
jmp 0x40e442
push ecx
lea ecx, [ebp - 0x374]
call fcn.0040f1c0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x20], 0x448be0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x10
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c4]
push 0
push esi
call fcn.00407d90
push 0
lea eax, [ebp - 0x5c4]
mov byte [ebp - 4], 5
push eax
push ebx
lea ecx, [ebp - 0x374]
call fcn.0040f350
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x40e205
mov byte [ebp - 0x5c5], 0
jmp 0x40e241
lea eax, [ebp - 0x5cc]
mov dword [ebp - 0x5cc], 0
push eax
push dword [ebp - 0x370]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e231
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e231
xor esi, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 0x5c5], 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40e271
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x40e271
push eax
call fcn.0041fd4b
add esp, 4
cmp byte [ebp - 0x5c5], 0
jne 0x40e287
mov eax, 0x447384
mov ecx, ebx
push eax
jmp 0x40e401
lea eax, [ebp - 0x5cc]
mov dword [ebp - 0x5cc], 0
push eax
push dword [ebp - 0x370]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e2b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e2b3
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ff0e
add esp, 4
mov dword [ebp - 0x5d0], eax
test eax, eax
jne 0x40e2d6
mov eax, 0x447398
mov ecx, ebx
push eax
jmp 0x40e401
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40e3c0
push 0
lea eax, [ebp - 0x5cc]
mov dword [ebp - 0x5cc], 0
push eax
push esi
push dword [ebp - 0x5d0]
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e341
cmp byte [ebp - 0x24c], al
lea esi, [ebp - 0x35c]
mov ecx, ebx
cmove esi, dword [ebp - 0x360]
call fcn.0040b380
push 0x447508
mov edi, eax
push 0x446fac
push edi
call fcn.0040af90
add esp, 0xc
jmp 0x40e36c
mov ecx, dword [ebp - 0x5cc]
test ecx, ecx
jne 0x40e387
cmp byte [ebp - 0x24c], cl
lea esi, [ebp - 0x35c]
push 0x447518
cmove esi, dword [ebp - 0x360]
mov ecx, ebx
call fcn.00402750
mov edi, eax
lea eax, [esi + 4]
push eax
push 0x446fac
push edi
call fcn.0040af90
add esp, 0xc
mov ecx, ebx
push 0x4473bc
jmp 0x40e401
cmp ecx, esi
je 0x40e3c0
cmp byte [ebp - 0x24c], 0
lea eax, [ebp - 0x35c]
cmove eax, dword [ebp - 0x360]
add eax, 4
push eax
push ecx
push esi
push str.penc_rN
push ebx
call fcn.0040b250
add esp, 0x14
test al, al
jne 0x40e3c3
push 0x4473bc
mov ecx, ebx
jmp 0x40e401
add dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x5d0]
lea ecx, [ebp - 0x374]
mov byte [esi + ebx], 0
call fcn.0040f5b0
push ecx
push esi
push ebx
mov ecx, edi
call fcn.0040e470
push dword [ebp - 0x5d0]
mov bl, al
call fcn.0041fd4b
add esp, 4
test bl, bl
jne 0x40e426
mov ecx, dword [ebp - 0x5d4]
push 0x447370
call fcn.00402750
lea ecx, [ebp - 0x374]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x20], vtable.t_byteStreamRead.0
call fcn.0040f2a0
xor al, al
jmp 0x40e444
lea ecx, [ebp - 0x374]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x20], vtable.t_byteStreamRead.0
call fcn.0040f2a0
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 - 0x14]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret 0xc