Function at 0x4140c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4993c2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c4]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov edi, edx
cmp dword [ebp + 0x10], esi
je 0x414128
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0xc]
push eax
mov dword [ebp + 0x10], ecx
call edx
add esp, 4
cmp dword [ebp + 0x10], esi
jne 0x414111
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x18], esi
jne 0x414210
mov dword [esp + 0x20], vtable.t_fileTextRead.0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x4bc], esi
call fcn.00410770
mov eax, edi
lea edx, [esp + 0x30]
call fcn.00410960
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c4], 2
call fcn.00418090
mov byte [esp + 0x4bc], 0
cmp byte [esp + 0x14c], 0
mov byte [esp + 0x17], al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x4141b1
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x4141b1
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x4141eb
mov eax, ebx
call fcn.0040f780
push 0x4b9ef0
push 0x4b8ff4
mov edx, eax
call fcn.00410f90
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, esi
je 0x4141e4
push eax
call fcn.00475125
add esp, 4
xor al, al
jmp 0x4143bf
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.004149c0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x4143bd
push eax
call fcn.00475125
add esp, 4
jmp 0x4143bd
lea esi, [esp + 0x154]
call fcn.00418900
lea ecx, [esp + 0x30]
mov dword [esp + 0x4bc], 3
call fcn.00410770
mov eax, edi
lea edx, [esp + 0x30]
call fcn.00410960
lea eax, [esp + 0x30]
push eax
mov eax, ebx
mov edi, esi
mov byte [esp + 0x4c0], 5
call fcn.004189d0
mov byte [esp + 0x4bc], 3
cmp byte [esp + 0x14c], 0
mov byte [esp + 0x17], al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x414284
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x414284
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x4142da
mov eax, ebx
call fcn.0040f780
push 0x4b9f04
push 0x4b8ff4
mov edx, eax
call fcn.00410f90
add esp, 8
mov dword [esp + 0x4bc], 0xffffffff
lea ecx, [esp + 0x154]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4a0], 0x4ba73c
call fcn.00415df0
xor al, al
jmp 0x4143bf
mov eax, dword [esp + 0x158]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414308
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414308
xor ebx, ebx
lea ecx, [ebx + 1]
push ecx
call fcn.00475202
mov esi, eax
add esp, 4
test esi, esi
jne 0x41432d
mov eax, dword [esp + 0x18]
push 0x4b9f18
call fcn.00407b00
jmp 0x4142a6
mov edi, dword [esp + 0x18]
push ebx
push esi
push edi
lea ecx, [esp + 0x4ac]
call fcn.00418a20
test al, al
jne 0x414355
push 0x4b9f3c
mov eax, edi
call fcn.00407b00
jmp 0x4142a6
lea edi, [esp + 0x154]
mov byte [ebx + esi], 0
call fcn.00416100
push ebx
push esi
mov edi, ebp
call fcn.004143f0
push esi
mov bl, al
call fcn.00475125
add esp, 4
test bl, bl
jne 0x4143a6
mov eax, dword [esp + 0x18]
push 0x4b9ef0
call fcn.00407b00
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004189b0
xor al, al
jmp 0x4143bf
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004189b0
mov al, 1
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.00474db0
add esp, 0x4ac
ret 4