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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b060
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push eax
lea edx, [ebp - 0x5c]
xor edi, edi
push edx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edi
call fcn.0047bc10
add esp, 8
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], edi
je 0x47c083
xor ebx, ebx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
lea eax, [ebx + esi]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00402530
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x47bfb9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47bffe
test al, 0x10
je 0x47bffe
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x47bfd4
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x64]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047bf10
add esp, 0xc
cmp dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
ja 0x47c106
cmp dword [ebp - 0x34], esi
jb 0x47c044
mov ecx, dword [ebp - 0x48]
push ecx
jmp 0x47c03c
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0047ba10
add esp, 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], esi
jae 0x47c01d
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x47c196
cmp dword [ebp - 0x34], esi
jb 0x47c044
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], esi
jb 0x47c059
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
add ebx, 0x1c
cmp edi, ecx
jb 0x47bf82
mov ebx, dword [ebp - 0x4c]
xor eax, eax
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push 0x4ab248
mov ecx, ebx
mov word [ebx], ax
call fcn.004027c0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x47c0e8
mov edi, dword [ebp - 0x58]
cmp esi, edi
je 0x47c0df
cmp dword [esi + 0x14], 8
jb 0x47c0c2
mov ecx, dword [esi]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, edi
jne 0x47c0b1
mov esi, dword [ebp - 0x5c]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
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.00497792
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov ebx, 7
xor edx, edx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
push eax
mov ecx, edi
mov word [edi], dx
call fcn.004085c0
cmp dword [ebp - 0x34], esi
jb 0x47c139
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], esi
jb 0x47c15a
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test eax, eax
je 0x47c18f
mov edx, dword [ebp - 0x60]
push edx
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
push ecx
push edx
push eax
call fcn.00457300
mov eax, dword [ebp - 0x5c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, edi
jmp 0x47c0ea
mov edi, dword [ebp - 0x4c]
xor ecx, ecx
xor ebx, ebx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.004085c0
cmp dword [ebp - 0x34], esi
jb 0x47c1c6
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x47c1e7
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x47c18f
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x50]
push edx
push ecx
push eax
call fcn.00457300
mov edx, dword [ebp - 0x5c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, edi
jmp 0x47c0ea