Function at 0x40ac30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c3b1
mov eax, dword fs:[0]
push eax
sub esp, 0x5e0
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c4], ebx
test ecx, ecx
je 0x40ac89
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
push ecx
call eax
mov ecx, dword [esi + 0x10]
add esp, 4
test ecx, ecx
jne 0x40ac73
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x40ae26
mov ecx, str.ReadConfig
call fcn.00409120
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x5dc], fcn.00429d12
mov dword [ebp - 0x5d8], fcn.0042a154
mov dword [ebp - 0x5d4], fcn.00429cf7
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5cc], 0x1fff8
mov dword [ebp - method.common::allocator_unsigned_char__class_common::TAllocDefault_.virtual_0], vtable.common::t_heap.0
mov dword [ebp - 0x5c8], 0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.00402110
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x5ec]
push eax
push ebx
call fcn.0040ddf0
mov byte [ebp - 4], 0
cmp byte [ebp - 0x18], 0
mov byte [ebp - 0x5b9], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40ad79
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x40ad79
push ecx
call fcn.00429cf7
add esp, 4
call fcn.004091b0
cmp byte [ebp - 0x5b9], 0
jne 0x40add6
push 0x450420
mov ecx, ebx
call fcn.00401e30
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40ada6
push eax
call fcn.00429cf7
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40adcf
mov edi, dword [ebp - 0x5d4]
nop dword [eax]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40adc0
xor al, al
jmp 0x40b016
lea eax, [ebp - 0x5ec]
mov ecx, esi
push eax
call fcn.0040b3a0
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40adf7
push eax
call fcn.00429cf7
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40b014
mov edi, dword [ebp - 0x5d4]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40ae12
jmp 0x40b014
push ecx
lea ecx, [ebp - 0x5b8]
call fcn.00405ac0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x264], 0x450840
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 4
call fcn.00402110
push 0
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 5
push eax
push ebx
lea ecx, [ebp - 0x5b8]
call fcn.00405c60
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x40aea3
mov byte [ebp - 0x5b9], 0
jmp 0x40aee2
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40aecf
xor edi, edi
mov dword [ebp - 0x260], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 0x5b9], 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40af12
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40af12
push eax
call fcn.00429cf7
add esp, 4
cmp byte [ebp - 0x5b9], 0
jne 0x40af28
mov eax, 0x450434
mov ecx, ebx
push eax
jmp 0x40afcd
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40af54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40af54
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.00429d12
add esp, 4
mov dword [ebp - 0x5c0], eax
test eax, eax
jne 0x40af74
mov eax, 0x450448
mov ecx, ebx
push eax
jmp 0x40afcd
push edi
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040e400
test al, al
jne 0x40af8f
push 0x45046c
mov ecx, ebx
jmp 0x40afcd
mov ebx, dword [ebp - 0x5c0]
lea ecx, [ebp - 0x5b8]
mov byte [edi + ebx], 0
call fcn.00405e80
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0040b040
push dword [ebp - 0x5c0]
mov bl, al
call fcn.00429cf7
add esp, 4
test bl, bl
jne 0x40aff5
mov ecx, dword [ebp - 0x5c4]
push 0x450420
call fcn.00401e30
lea ecx, [ebp - 0x5b8]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00405ba0
xor al, al
jmp 0x40b016
lea ecx, [ebp - 0x5b8]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00405ba0
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 - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret 0xc