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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov eax, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
xor bl, bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0xffffffff
call fcn.0047b600
test eax, eax
jne 0x47ccd7
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47cccd
push 0xffffffffffffffff
push edi
push esi
call fcn.0047d0f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47cce0
sub eax, edx
lea eax, [esi + eax - 1]
cmp eax, esi
jbe 0x47ccfb
dec eax
cmp byte [eax], 0x2f
je 0x47ccfc
cmp eax, esi
ja 0x47ccf1
dec eax
mov ecx, dword [ebp - 0x10]
lea edi, [eax + 1]
mov al, byte [edi]
mov byte [ebp - 1], al
mov byte [edi], 0
test ecx, ecx
je 0x47cd10
mov byte [ecx], bl
mov bl, al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.0047cb30
mov dword [ebp - 8], eax
test eax, eax
jne 0x47cd28
cmp edi, esi
ja 0x47ccd7
lea eax, [edi + 1]
mov dword [ebp + 0xc], edi
mov edi, 0x2f
call fcn.0047bbb0
mov edi, dword [ebp + 8]
mov esi, eax
mov eax, edi
mov dword [ebp - 0x14], esi
lea edx, [eax + 1]
test esi, esi
je 0x47cd72
mov byte [esi], 0
inc esi
mov dword [ebp - 0x14], esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47cd50
mov ecx, esi
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x47cd60
sub ecx, esi
lea eax, [ecx + eax + 0x101]
jmp 0x47cd80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47cd72
sub eax, edx
add eax, 0x100
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x47cf18
push eax
call fcn.004aa188
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x47cf18
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47cda7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47cdb6
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47cdce
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov eax, dword [ebp + 0xc]
call fcn.0047b600
test eax, eax
jne 0x47cde2
or edi, 0xffffffff
jmp 0x47cf33
mov esi, ebx
call fcn.0047cc30
mov edi, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x47cf33
mov ecx, 0x4d8f74
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47ce20
test dl, dl
je 0x47ce1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47ce20
add eax, 2
add ecx, 2
test dl, dl
jne 0x47ce00
xor eax, eax
jmp 0x47ce25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47cf05
mov ecx, 0x4d8f78
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47ce54
test dl, dl
je 0x47ce50
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47ce54
add eax, 2
add ecx, 2
test dl, dl
jne 0x47ce34
xor eax, eax
jmp 0x47ce59
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47cf05
mov eax, dword [ebp + 0xc]
push 0
push esi
call fcn.0047b9c0
add esp, 8
test eax, eax
je 0x47cf05
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0xc]
add ebx, edi
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47ce85
cmp dword [ebp - 0x14], 0
je 0x47ced6
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47cea0
mov esi, dword [ebp - 0xc]
sub eax, edx
lea ecx, [eax + esi]
mov eax, dword [ebp - 0x14]
mov byte [ecx], 0x2f
inc ecx
mov edi, ecx
sub edi, eax
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
test dl, dl
jne 0x47cec0
push ecx
push esi
call fcn.0047cc80
add esp, 8
jmp 0x47ceeb
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xc]
push ecx
push 0
push edx
call fcn.0047d0f0
add esp, 0xc
mov edi, eax
mov byte [ebx], 0
test edi, edi
jne 0x47cefd
mov dword [ebp - 0x1c], 1
jmp 0x47cf02
cmp edi, 0xffffffff
jne 0x47cf30
mov ebx, dword [ebp - 8]
mov esi, ebx
call fcn.0047cc30
mov esi, eax
test esi, esi
jne 0x47cdf6
jmp 0x47cf33
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47cf24
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov edi, ebx
neg edi
sbb edi, edi
and edi, 5
dec edi
jmp 0x47cf33
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x47cf49
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.004aa14e
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47cf54
mov byte [eax - 1], 0x2f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47cf64
push eax
call fcn.004aa14e
add esp, 4
cmp edi, 0xffffffff
jne 0x47cf71
cmp dword [ebp - 0x1c], 0
je 0x47cf71
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret