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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d074d
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 0x47a687
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
test edi, edi
je 0x47a494
push edi
push ebx
call fcn.00477ed0
lea ecx, [ebp - 0x18]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x14], esi
call fcn.00478ab0
cmp dword [edi], 0
je 0x47a4ad
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 0x47a47e
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x47a47e
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47a425
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x47a45f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47a455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a68f
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.00477e10
lea ecx, [ebp - 0x18]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x14], esi
call fcn.00478ab0
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 0x47a5cf
test esi, esi
jne 0x47a4de
test eax, eax
je 0x47a4ef
cmp dword [eax + 0x2c], esi
je 0x47a5cf
test eax, eax
jne 0x47a4ef
test esi, esi
je 0x47a4ef
cmp dword [esi + 0x2c], eax
je 0x47a5cf
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
jb 0x47a4fb
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47a51e
push edi
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047a110
add esp, 0xc
mov ebx, dword [eax]
jmp 0x47a56d
test edi, edi
je 0x47a533
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x5e1888
test ebx, 0x400
je 0x47a564
lea eax, [esi + 4]
push eax
call fcn.00479f00
add esp, 4
test al, al
je 0x47a55d
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x47a56d
mov ebx, 9
jmp 0x47a56d
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test edi, edi
je 0x47a576
cmp dword [edi], 0
jne 0x47a5c7
push edi
lea eax, [esi + 4]
push ebx
push eax
call fcn.0047a370
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 0x47a5a1
cmp dword [edi], 0
jne 0x47a3fa
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004795e0
mov esi, dword [ebp - 0x14]
add esp, 8
test edi, edi
je 0x47a4c0
cmp dword [edi], 0
jne 0x47a3fd
jmp 0x47a4c0
mov ebx, dword [ebp - 0x18]
jmp 0x47a3fd
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47a650
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x47a650
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47a5fb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x47a631
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47a627
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a68f
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.0047a6a0
add esp, 0xc
test edi, edi
je 0x47a66b
cmp dword [edi], 0
jne 0x47a671
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 0x47a653
call fcn.004f242f
int3