Function at 0x40aea0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c631
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 0x40aef9
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 0x40aee3
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x40b096
mov ecx, str.ReadConfig
call fcn.00409390
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x5dc], fcn.00429f92
mov dword [ebp - 0x5d8], fcn.0042a3d4
mov dword [ebp - 0x5d4], fcn.00429f77
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.0040e070
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 0x40afe9
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x40afe9
push ecx
call fcn.00429f77
add esp, 4
call fcn.00409420
cmp byte [ebp - 0x5b9], 0
jne 0x40b046
push 0x450438
mov ecx, ebx
call fcn.00401e30
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40b016
push eax
call fcn.00429f77
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40b03f
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 0x40b030
xor al, al
jmp 0x40b286
lea eax, [ebp - 0x5ec]
mov ecx, esi
push eax
call fcn.0040b610
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40b067
push eax
call fcn.00429f77
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40b284
mov edi, dword [ebp - 0x5d4]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40b082
jmp 0x40b284
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], 0x450850
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 0x40b113
mov byte [ebp - 0x5b9], 0
jmp 0x40b152
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b13f
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 0x40b182
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40b182
push eax
call fcn.00429f77
add esp, 4
cmp byte [ebp - 0x5b9], 0
jne 0x40b198
mov eax, 0x45044c
mov ecx, ebx
push eax
jmp 0x40b23d
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b1c4
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.00429f92
add esp, 4
mov dword [ebp - 0x5c0], eax
test eax, eax
jne 0x40b1e4
mov eax, 0x450460
mov ecx, ebx
push eax
jmp 0x40b23d
push edi
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040e680
test al, al
jne 0x40b1ff
push 0x450484
mov ecx, ebx
jmp 0x40b23d
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.0040b2b0
push dword [ebp - 0x5c0]
mov bl, al
call fcn.00429f77
add esp, 4
test bl, bl
jne 0x40b265
mov ecx, dword [ebp - 0x5c4]
push 0x450438
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 0x40b286
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.00422505
mov esp, ebp
pop ebp
ret 0xc