Function at 0x470960
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f366
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], esi
call fcn.00436e90
xor ebx, ebx
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x4f4], ebx
call fcn.00470eb0
lea eax, [esp + 0x68]
cmp byte [esp + 0x178], bl
jne 0x4709d6
mov eax, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 4
push eax
call esi
cmp eax, 0xffffffff
je 0x4709f0
shr eax, 4
not al
and al, 1
jne 0x470a12
lea eax, [esp + 0x68]
cmp byte [esp + 0x178], bl
jne 0x470a01
mov eax, dword [esp + 0x64]
add eax, 4
push eax
call fcn.00470f90
test al, al
je 0x470ad4
lea eax, [esp + 0x68]
cmp byte [esp + 0x178], bl
jne 0x470a23
mov eax, dword [esp + 0x64]
add eax, 4
push eax
call esi
or esi, 0xffffffff
cmp eax, esi
je 0x470a39
shr eax, 4
not al
and al, 1
jne 0x470a75
mov ecx, edi
call fcn.00439450
push 0x52d5cc
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
mov dword [esp + 0x5c], vtable.t_str.0
cmp byte [esp + 0x178], bl
jne 0x470afa
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x68]
cmp eax, edx
jmp 0x470aef
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], ebx
call fcn.004379a0
test al, al
je 0x470a92
cmp dword [esp + 0x14], 0x38
ja 0x470b01
lea ecx, [esp + 0x5c]
call fcn.00437b00
lea eax, [esp + 0x68]
cmp byte [esp + 0x178], bl
jne 0x470aac
mov eax, dword [esp + 0x64]
add eax, 4
push eax
call fcn.00470f90
test al, al
jne 0x470b01
mov ecx, edi
call fcn.00439450
push 0x52d5e0
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
mov dword [esp + 0x5c], vtable.t_str.0
cmp byte [esp + 0x178], bl
jne 0x470afa
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x68]
cmp eax, ecx
je 0x470afa
push eax
call fcn.004ccef0
add esp, 4
xor al, al
jmp 0x470e06
mov dword [esp + 0x14], 3
lea esp, [esp]
lea ecx, [esp + 0x190]
mov dword [esp + method.t_file.virtual_0], vtable.t_file.0
mov dword [esp + 0x188], esi
mov dword [esp + 0x18c], esi
call fcn.0043a090
cmp dword [esp + 0x2b0], ebx
je 0x470b45
mov dword [esp + 0x2b0], ebx
mov ecx, 1
lea esi, [esp + 0x198]
mov dword [esp + 0x194], ebx
call fcn.0043ae00
lea eax, [esp + 0x19c]
cmp byte [esp + 0x2ac], bl
jne 0x470b74
mov eax, dword [esp + 0x198]
xor edx, edx
mov word [eax + 4], dx
xor eax, eax
mov esi, vtable.t_fileRead.0
mov dword [esp + 0x2b8], ebx
mov dword [esp + 0x4c4], 8
mov word [esp + 0x2bc], ax
mov dword [esp + method.t_path::t_mutex.virtual_0], vtable.t_path::t_mutex.0
mov dword [esp + 0x4c8], 0x529be0
mov dword [esp + 0x4cc], ebx
mov dword [esp + 0x184], esi
mov dword [esp + 0x4d0], 0x52afc8
mov dword [esp + 0x4d4], ebx
mov dword [esp + 0x4d8], ebx
push ebx
push edi
lea ecx, [esp + 0x18c]
push ecx
lea eax, [esp + 0x68]
mov byte [esp + 0x4fc], 1
call fcn.0043fdc0
test al, al
je 0x470ce6
mov eax, dword [esp + 0x188]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x470c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x470c27
xor eax, eax
jmp 0x470c29
mov eax, esi
push 0x34
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x4e0], eax
mov dword [esp + 0x30], ebx
call fcn.004d3fc0
add esp, 0xc
push 0x38
lea edx, [esp + 0x28]
push edx
push edi
lea ecx, [esp + 0x4dc]
call fcn.00447bd0
test al, al
je 0x470d27
cmp dword [esp + 0x24], 0x46534650
jne 0x470c75
cmp dword [esp + 0x3c], 0x38
jae 0x470d4e
lea eax, [esp + 0x184]
push eax
call fcn.0043ffe0
lea eax, [esp + 0x68]
cmp byte [esp + 0x178], bl
jne 0x470c93
mov eax, dword [esp + 0x64]
add eax, 4
push eax
call fcn.00470f90
test al, al
je 0x470d47
mov eax, dword [esp + 0x14]
dec eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x470d4e
mov byte [esp + 0x4f0], bl
lea ecx, [esp + 0x184]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4d0], 0x52afd4
call fcn.0043fcf0
or esi, 0xffffffff
jmp 0x470b10
push 0x52d55c
mov ecx, edi
call fcn.00402960
mov byte [esp + 0x4f0], bl
mov dword [esp + 0x184], esi
lea ecx, [esp + 0x184]
mov dword [esp + 0x4d0], 0x52afd4
call fcn.0043fcf0
lea ecx, [esp + 0x5c]
call fcn.0043a230
xor al, al
jmp 0x470e06
push 0x52d604
mov ecx, edi
call fcn.00402960
mov byte [esp + 0x4f0], bl
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
jmp 0x470d00
push 0x52d620
jmp 0x470d2c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x18], eax
call fcn.00484e90
mov esi, eax
cmp esi, ebx
jne 0x470d74
push 0x52d494
jmp 0x470d2c
mov ecx, dword [esp + 0x14]
push 0x38
lea eax, [esp + 0x28]
push eax
push ecx
push esi
call fcn.004d0a60
mov eax, dword [esp + 0x4e4]
sub eax, dword [esp + 0x4e8]
add esp, 0x10
push eax
lea edx, [esi + 0x38]
push edx
push edi
lea ecx, [esp + 0x4dc]
call fcn.00447bd0
test al, al
jne 0x470de8
mov eax, dword [esp + 0x14]
push eax
push ebx
push esi
call fcn.004d3fc0
add esp, 0xc
push 0x52d644
mov ecx, edi
call fcn.00402960
lea ecx, [esp + 0x184]
mov byte [esp + 0x4f0], bl
call fcn.00447b60
lea ecx, [esp + 0x5c]
call fcn.0043a230
xor al, al
jmp 0x470e06
lea ecx, [esp + 0x184]
mov byte [esp + 0x4f0], bl
call fcn.00447b60
lea ecx, [esp + 0x5c]
call fcn.0043a230
mov al, 1
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d0]
xor ecx, esp
call fcn.004ccee1
mov esp, ebp
pop ebp
ret 4