Function at 0x40a6c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf11
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
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 - 0x4a0], ebx
test ecx, ecx
je 0x40a719
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 0x40a703
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x40a8b6
mov ecx, str.ReadConfig
call fcn.00408d10
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4b8], fcn.00429862
mov dword [ebp - 0x4b4], fcn.00429ca4
mov dword [ebp - 0x4b0], fcn.00429847
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0x1fff8
mov dword [ebp - method.common::allocator_unsigned_char__class_common::TAllocDefault_.virtual_0], vtable.common::t_heap.0
mov dword [ebp - 0x4a4], 0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.004020e0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x4c8]
push eax
push ebx
call fcn.0040da10
mov byte [ebp - 4], 0
cmp byte [ebp - 0x18], 0
mov byte [ebp - 0x495], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40a809
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x40a809
push ecx
call fcn.00429847
add esp, 4
call fcn.00408da0
cmp byte [ebp - 0x495], 0
jne 0x40a866
push 0x45039c
mov ecx, ebx
call fcn.00401e00
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x40a836
push eax
call fcn.00429847
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x4ac]
test eax, eax
je 0x40a85f
mov edi, dword [ebp - 0x4b0]
nop dword [eax]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40a850
xor al, al
jmp 0x40aaa3
lea eax, [ebp - 0x4c8]
mov ecx, esi
push eax
call fcn.0040ae30
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x40a887
push eax
call fcn.00429847
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x4ac]
test eax, eax
je 0x40aaa1
mov edi, dword [ebp - 0x4b0]
mov esi, dword [eax + 4]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x40a8a2
jmp 0x40aaa1
push ecx
lea ecx, [ebp - 0x494]
call fcn.00405a60
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x140], 0x4507b0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 4
call fcn.004020e0
push 0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 5
push eax
push ebx
lea ecx, [ebp - 0x494]
call fcn.00405c00
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x40a933
mov byte [ebp - 0x495], 0
jmp 0x40a972
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push dword [ebp - 0x490]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a95f
xor edi, edi
mov dword [ebp - 0x13c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 0x495], 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40a99f
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40a99f
push eax
call fcn.00429847
add esp, 4
cmp byte [ebp - 0x495], 0
jne 0x40a9b5
mov eax, 0x4503b0
mov ecx, ebx
push eax
jmp 0x40aa5a
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push dword [ebp - 0x490]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a9e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a9e1
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.00429862
add esp, 4
mov dword [ebp - 0x49c], eax
test eax, eax
jne 0x40aa01
mov eax, 0x4503c4
mov ecx, ebx
push eax
jmp 0x40aa5a
push edi
push eax
push ebx
lea ecx, [ebp - 0x140]
call fcn.0040e020
test al, al
jne 0x40aa1c
push 0x4503e8
mov ecx, ebx
jmp 0x40aa5a
mov ebx, dword [ebp - 0x49c]
lea ecx, [ebp - 0x494]
mov byte [edi + ebx], 0
call fcn.00405e20
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0040aad0
push dword [ebp - 0x49c]
mov bl, al
call fcn.00429847
add esp, 4
test bl, bl
jne 0x40aa82
mov ecx, dword [ebp - 0x4a0]
push 0x45039c
call fcn.00401e00
lea ecx, [ebp - 0x494]
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.00405b40
xor al, al
jmp 0x40aaa3
lea ecx, [ebp - 0x494]
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.00405b40
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.00421dd5
mov esp, ebp
pop ebp
ret 0xc