Function at 0x407cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43767c
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x44c040]
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
cmp dword [esi + 0x10], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
je 0x407d48
nop dword [eax]
mov ecx, dword [esi + 0x10]
push ecx
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
call eax
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x407d30
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x407e92
call fcn.00403850
test al, al
je 0x407d88
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.ReadConfig
push eax
call fcn.0040a170
mov ecx, eax
call fcn.0040a2f0
mov ecx, eax
call fcn.0040a660
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b0], fcn.00427b01
mov dword [ebp - 0x4ac], fcn.004280d8
mov dword [ebp - 0x4a8], fcn.00427afc
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0x1fff8
mov dword [ebp - method.allocator_unsigned_char__class_TAllocDefault_.virtual_0], vtable.t_heap.0
mov dword [ebp - 0x49c], 0
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.00405860
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x4c0]
push eax
push edi
call fcn.0040b750
mov byte [ebp - 4], 0
mov bl, al
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407e4d
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x407e4d
push ecx
call fcn.00427afc
add esp, 4
call fcn.00403730
test bl, bl
jne 0x407e74
push 0x444880
mov ecx, edi
call fcn.00403170
lea ecx, [ebp - 0x4c0]
call fcn.0040b6c0
xor al, al
jmp 0x408060
lea eax, [ebp - 0x4c0]
mov ecx, esi
push eax
call fcn.004082e0
lea ecx, [ebp - 0x4c0]
call fcn.0040b6c0
jmp 0x40805e
push ecx
lea ecx, [ebp - 0x494]
call fcn.004031d0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x140], 0x4461c0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
sub esp, 0x10
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.00405860
push 0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x494]
call fcn.00403330
test al, al
jne 0x407eff
xor bl, bl
jmp 0x407f37
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407f2f
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov bl, 1
mov byte [ebp - 4], 2
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407f64
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x407f64
push eax
call fcn.00427afc
add esp, 4
test bl, bl
jne 0x407f72
push 0x444894
jmp 0x408015
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407fa2
xor ebx, ebx
lea eax, [ebx + 1]
push eax
call fcn.00427b01
add esp, 4
mov dword [ebp - 0x498], eax
test eax, eax
jne 0x407fbf
push 0x4448a8
jmp 0x408015
push ebx
push eax
push edi
lea ecx, [ebp - 0x140]
call fcn.0040bd50
test al, al
jne 0x407fd8
push 0x4448cc
jmp 0x408015
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
mov byte [ebx + eax], 0
call fcn.004035e0
push ecx
push ebx
push dword [ebp - 0x498]
mov ecx, esi
call fcn.00408080
push dword [ebp - 0x498]
mov bl, al
call fcn.00427afc
add esp, 4
test bl, bl
jne 0x40803f
push 0x444880
mov ecx, edi
call fcn.00403170
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.00403270
xor al, al
jmp 0x408060
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.00403270
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.00421b57
mov esp, ebp
pop ebp
ret 0xc