Function at 0x4704a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f3c1
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4e4]
cmp dword [eax + 0x42c], 0
mov ebx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov esi, edx
jne 0x470515
call fcn.00439450
push 0x52d428
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
jmp 0x470835
test esi, esi
jne 0x470537
call fcn.00439450
push 0x528ba4
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
jmp 0x470835
lea ecx, [esp + 0x4c]
call fcn.0043a090
mov eax, esi
lea edx, [esp + 0x4c]
call fcn.0043a2e0
mov dword [esp + 0x4dc], 1
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x470568
mov eax, dword [esp + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470580
shr eax, 4
not al
and al, 1
jne 0x4705cf
mov ecx, ebx
call fcn.00439450
push 0x5228d0
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x168], 0
mov dword [esp + 0x4c], vtable.t_str.0
jne 0x470835
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x470835
push eax
call fcn.004ccef0
add esp, 4
jmp 0x470835
lea eax, [esp + 0x174]
call fcn.00447af0
lea edx, [esp + 0x4c]
push edx
mov eax, ebx
lea edi, [esp + 0x178]
mov byte [esp + 0x4e0], 2
call fcn.00447b80
test al, al
jne 0x470630
push 0x52904c
mov ecx, ebx
call fcn.00402960
mov byte [esp + 0x4dc], 1
mov ecx, edi
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4c0], 0x52afd4
call fcn.0043fcf0
jmp 0x47082c
mov eax, dword [esp + 0x4c4]
sub eax, dword [esp + 0x4c8]
push eax
call fcn.004d0add
mov ebp, eax
mov eax, dword [esp + 0x4c8]
sub eax, dword [esp + 0x4cc]
add esp, 4
push eax
push ebp
push ebx
lea ecx, [esp + 0x4cc]
call fcn.00447bd0
test al, al
jne 0x47067d
push ebp
call fcn.004d051b
add esp, 4
push 0x5232a4
jmp 0x470811
cmp dword [ebp], 0x46534650
jne 0x470803
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x38
jb 0x470803
mov edx, dword [ebp + 0x24]
xor eax, eax
add edx, ebp
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
mov dword [esp + 0x48], edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
jle 0x4707d9
lea ecx, [ecx + ebp + 6]
mov dword [esp + 0x18], ecx
cmp word [ecx], 0
jne 0x4707c4
mov ecx, dword [ebp + 0x28]
imul ecx, ebx
mov esi, dword [edx + ecx*4]
add esi, dword [ebp + 0x2c]
movzx eax, word [esi + ebp]
add esi, ebp
mov word [esp + 0x1c], ax
test ax, ax
jne 0x470714
mov edx, dword [esi + 2]
mov eax, dword [esi + 6]
mov dword [esp + 0x1e], edx
mov dword [esp + 0x22], eax
jmp 0x470733
cmp ax, 1
jne 0x470733
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esi + 2]
mov edx, dword [esi + 6]
add ecx, eax
add ecx, ebp
add edx, eax
add edx, ebp
mov dword [esp + 0x1e], ecx
mov dword [esp + 0x22], edx
mov eax, dword [esi + 0xa]
mov edx, dword [esi + 0x12]
mov ecx, dword [esi + 0xe]
mov dword [esp + 0x26], eax
mov ax, word [esi + 0x1c]
movsx edi, ax
mov dword [esp + 0x2a], ecx
mov dword [esp + 0x2e], edx
mov word [esp + 0x36], ax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d0add
mov esi, dword [esi + 0x18]
add esi, dword [ebp + 0x2c]
add esp, 4
add esi, ebp
mov dword [esp + 0x32], eax
test edi, edi
jle 0x470794
sub esi, eax
mov ecx, dword [esi + eax]
add ecx, dword [ebp + 0x2c]
add eax, 4
add ecx, ebp
sub edi, 1
mov dword [eax - 4], ecx
jne 0x470781
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push edx
lea edi, [esp + 0x20]
mov ecx, esi
call fcn.0046fef0
test al, al
jne 0x4707b3
mov ecx, esi
call fcn.004394a0
mov eax, dword [esp + 0x32]
push eax
call fcn.004d051b
mov edx, dword [esp + 0x4c]
add esp, 4
mov ecx, dword [esp + 0x18]
inc ebx
add ecx, 8
cmp ebx, dword [ebp + 0x20]
mov dword [esp + 0x18], ecx
jl 0x4706de
push ebp
call fcn.004d051b
add esp, 4
lea ecx, [esp + 0x174]
mov byte [esp + 0x4dc], 1
call fcn.00447b60
lea ecx, [esp + 0x4c]
call fcn.0043a230
mov al, 1
jmp 0x470837
push ebp
call fcn.004d051b
add esp, 4
push 0x52d5bc
mov ecx, ebx
call fcn.00402960
lea ecx, [esp + 0x174]
mov byte [esp + 0x4dc], 1
call fcn.00447b60
lea ecx, [esp + 0x4c]
call fcn.0043a230
xor al, al
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.004ccee1
add esp, 0x4cc
ret 4