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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d078d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x640844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 3
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
jne 0x47a667
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
test edi, edi
je 0x47a474
push edi
push ebx
call fcn.00477eb0
lea ecx, [ebp - 0x18]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x14], esi
call fcn.00478a90
cmp dword [edi], 0
je 0x47a48d
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x47a45e
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x47a45e
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47a405
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x47a43f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47a435
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a66f
mov eax, edx
push ecx
push eax
call fcn.004ece5f
add esp, 8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x30
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.004ece5f
add esp, 8
mov edx, edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00477df0
lea ecx, [ebp - 0x18]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x14], esi
call fcn.00478a90
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
nop dword [eax]
mov eax, dword [0x647424]
cmp esi, eax
je 0x47a5af
test esi, esi
jne 0x47a4be
test eax, eax
je 0x47a4cf
cmp dword [eax + 0x2c], esi
je 0x47a5af
test eax, eax
jne 0x47a4cf
test esi, esi
je 0x47a4cf
cmp dword [esi + 0x2c], eax
je 0x47a5af
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
jb 0x47a4db
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47a4fe
push edi
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047a0f0
add esp, 0xc
mov ebx, dword [eax]
jmp 0x47a54d
test edi, edi
je 0x47a513
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x5e18d8
test ebx, 0x400
je 0x47a544
lea eax, [esi + 4]
push eax
call fcn.00479ee0
add esp, 4
test al, al
je 0x47a53d
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x47a54d
mov ebx, 9
jmp 0x47a54d
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test edi, edi
je 0x47a556
cmp dword [edi], 0
jne 0x47a5a7
push edi
lea eax, [esi + 4]
push ebx
push eax
call fcn.0047a350
mov ebx, dword [ebp - 0x18]
add esp, 0xc
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
adc eax, edx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x47a581
cmp dword [edi], 0
jne 0x47a3da
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004795c0
mov esi, dword [ebp - 0x14]
add esp, 8
test edi, edi
je 0x47a4a0
cmp dword [edi], 0
jne 0x47a3dd
jmp 0x47a4a0
mov ebx, dword [ebp - 0x18]
jmp 0x47a3dd
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47a630
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x47a630
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47a5db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x47a611
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47a607
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a66f
mov eax, edx
push ecx
push eax
call fcn.004ece5f
add esp, 8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x30
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.004ece5f
add esp, 8
mov esi, dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047a680
add esp, 0xc
test edi, edi
je 0x47a64b
cmp dword [edi], 0
jne 0x47a651
add ebx, 1
adc esi, 0
mov edx, esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
jmp 0x47a633
call fcn.004f242f
int3