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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffbe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov byte [ebp - 9], 0
cmp dword [ebp - 8], 0
je 0x46d4b1
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x46d4c3
mov word [ebp - 0x1418], 0
lea eax, [ebp - 0x1418]
mov dword [ebp - 8], eax
mov eax, dword [0x66d7e4]
cmp dword [eax + 4], 5
jb 0x46d6cd
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebx]
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x46d4e8
mov al, 1
jmp 0x46d4ef
cmp ax, 0x2f
sete al
test al, al
je 0x46d563
lea eax, [ebx + 2]
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x46d503
mov al, 1
jmp 0x46d50a
cmp ax, 0x2f
sete al
test al, al
je 0x46d563
lea eax, [ebx + 4]
movzx eax, word [eax]
cmp ax, 0x2e
jne 0x46d51e
mov al, 1
jmp 0x46d525
cmp ax, 0x3f
sete al
test al, al
je 0x46d542
lea eax, [ebx + 6]
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x46d539
mov al, 1
jmp 0x46d544
cmp ax, 0x2f
sete al
jmp 0x46d544
xor eax, eax
test al, al
je 0x46d556
mov esi, 4
mov dword [ebp - 0x10], 4
jmp 0x46d563
mov eax, dword [ebp - 4]
mov word [eax], 0
jmp 0x46d6cd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046cdf4
test eax, eax
je 0x46d595
lea edx, [ebp - 0x1216]
mov ecx, 0xff
mov eax, dword [ebp - 4]
call fcn.0046cda4
test eax, eax
je 0x46d595
mov byte [ebp - 9], 1
jmp 0x46d6cd
inc esi
mov edx, esi
mov eax, ebx
call fcn.0040d9dc
cmp word [eax], 0
je 0x46d5c2
mov edx, esi
mov eax, ebx
call fcn.0040d9dc
cmp word [eax], 0x5c
je 0x46d5c2
mov edx, esi
mov eax, ebx
call fcn.0040d9dc
cmp word [eax], 0x2f
jne 0x46d594
lea eax, [ebp - 0x1014]
mov ecx, 0x7ff
mov edx, ebx
call fcn.0040da74
mov ebx, eax
dec ebx
cmp esi, ebx
jg 0x46d629
movzx edi, word [ebp + ebx*2 - 0x1014]
cmp di, 0x2f
je 0x46d5ef
cmp di, 0x5c
jne 0x46d624
mov word [ebp + ebx*2 - 0x1014], 0
cmp esi, ebx
je 0x46d629
lea eax, [ebp - 0x1014]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46d624
test byte [ebp - 0x13], 4
mov eax, dword [ebp + 8]
setne byte [eax]
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x46d629
dec ebx
cmp esi, ebx
jle 0x46d5db
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x46d6aa
cmp dword [ebp - 0x10], 0
jl 0x46d6aa
mov eax, dword [ebp - 0x10]
lea eax, [ebp + eax*2 - 0x1014]
mov ecx, 0xff
mov edx, dword [ebp - 8]
call fcn.0046ce90
test eax, eax
jbe 0x46d6aa
mov eax, dword [ebp - 8]
cmp word [eax], 0x5c
jne 0x46d66a
mov eax, dword [ebp - 8]
add eax, 2
cmp word [eax], 0x3f
sete al
jmp 0x46d66c
xor eax, eax
test al, al
je 0x46d67f
mov eax, dword [ebp - 8]
add eax, 4
cmp word [eax], 0x3f
sete al
jmp 0x46d681
xor eax, eax
test al, al
je 0x46d6aa
mov eax, dword [ebp - 8]
add eax, 6
cmp word [eax], 0x5c
jne 0x46d6aa
mov edx, dword [ebp - 8]
add edx, 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040da74
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x46d6cd
mov word [ebp + ebx*2 - 0x1014], 0x5c
inc ebx
cmp ebx, dword [ebp + 0xc]
jle 0x46d6bd
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x1014]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040da74
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8