Function at 0x412170
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x48df42
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b81f4]
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 0x4121d8
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 0x4121c1
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x18], esi
jne 0x4122c0
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.0040f730
mov eax, edi
lea edx, [esp + 0x30]
call fcn.0040f920
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c4], 2
call fcn.00414da0
mov byte [esp + 0x4bc], 0
cmp byte [esp + 0x14c], 0
mov byte [esp + 0x17], al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x412261
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x412261
push eax
call fcn.0046b865
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x41229b
mov eax, ebx
call fcn.0040e680
push 0x4ae240
push 0x4ad42c
mov edx, eax
call fcn.0040fd10
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, esi
je 0x412294
push eax
call fcn.0046b865
add esp, 4
xor al, al
jmp 0x41246f
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.00412a70
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x41246d
push eax
call fcn.0046b865
add esp, 4
jmp 0x41246d
lea esi, [esp + 0x154]
call fcn.00415610
lea ecx, [esp + 0x30]
mov dword [esp + 0x4bc], 3
call fcn.0040f730
mov eax, edi
lea edx, [esp + 0x30]
call fcn.0040f920
lea eax, [esp + 0x30]
push eax
mov eax, ebx
mov edi, esi
mov byte [esp + 0x4c0], 5
call fcn.004156e0
mov byte [esp + 0x4bc], 3
cmp byte [esp + 0x14c], 0
mov byte [esp + 0x17], al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x412334
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x412334
push eax
call fcn.0046b865
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x41238a
mov eax, ebx
call fcn.0040e680
push 0x4ae254
push 0x4ad42c
mov edx, eax
call fcn.0040fd10
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], 0x4ae8f0
call fcn.00413df0
xor al, al
jmp 0x41246f
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 0x4123b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4123b8
xor ebx, ebx
lea ecx, [ebx + 1]
push ecx
call fcn.0046b942
mov esi, eax
add esp, 4
test esi, esi
jne 0x4123dd
mov eax, dword [esp + 0x18]
push 0x4ae268
call fcn.0040a030
jmp 0x412356
mov edi, dword [esp + 0x18]
push ebx
push esi
push edi
lea ecx, [esp + 0x4ac]
call fcn.00415730
test al, al
jne 0x412405
push 0x4ae28c
mov eax, edi
call fcn.0040a030
jmp 0x412356
lea edi, [esp + 0x154]
mov byte [ebx + esi], 0
call fcn.00414100
push ebx
push esi
mov edi, ebp
call fcn.004124a0
push esi
mov bl, al
call fcn.0046b865
add esp, 4
test bl, bl
jne 0x412456
mov eax, dword [esp + 0x18]
push 0x4ae240
call fcn.0040a030
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004156c0
xor al, al
jmp 0x41246f
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004156c0
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.0046b4eb
add esp, 0x4ac
ret 4