Function at 0x40ae80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c621
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 0x40aed9
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 0x40aec3
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x40b076
mov ecx, str.ReadConfig
call fcn.00409370
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x5dc], fcn.00429f82
mov dword [ebp - 0x5d8], fcn.0042a3c4
mov dword [ebp - 0x5d4], fcn.00429f67
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.0040e190
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 0x40afc9
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x40afc9
push ecx
call fcn.00429f67
add esp, 4
call fcn.00409400
cmp byte [ebp - 0x5b9], 0
jne 0x40b026
push 0x450448
mov ecx, ebx
call fcn.00401e30
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40aff6
push eax
call fcn.00429f67
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40b01f
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 0x40b010
xor al, al
jmp 0x40b266
lea eax, [ebp - 0x5ec]
mov ecx, esi
push eax
call fcn.0040b5f0
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x40b047
push eax
call fcn.00429f67
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5d0]
test eax, eax
je 0x40b264
mov edi, dword [ebp - 0x5d4]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40b062
jmp 0x40b264
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], 0x4508d0
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 0x40b0f3
mov byte [ebp - 0x5b9], 0
jmp 0x40b132
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b11f
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 0x40b162
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40b162
push eax
call fcn.00429f67
add esp, 4
cmp byte [ebp - 0x5b9], 0
jne 0x40b178
mov eax, 0x45045c
mov ecx, ebx
push eax
jmp 0x40b21d
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b1a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b1a4
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.00429f82
add esp, 4
mov dword [ebp - 0x5c0], eax
test eax, eax
jne 0x40b1c4
mov eax, 0x450470
mov ecx, ebx
push eax
jmp 0x40b21d
push edi
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040e7a0
test al, al
jne 0x40b1df
push 0x450494
mov ecx, ebx
jmp 0x40b21d
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.0040b290
push dword [ebp - 0x5c0]
mov bl, al
call fcn.00429f67
add esp, 4
test bl, bl
jne 0x40b245
mov ecx, dword [ebp - 0x5c4]
push 0x450448
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 0x40b266
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.004224f6
mov esp, ebp
pop ebp
ret 0xc