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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], 0
mov edi, ecx
mov dword [ebp - 0xc], 0
mov ecx, esi
mov dword [ebp - 0x10], edi
xor bh, bh
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xffffffff
call fcn.004a2e90
test eax, eax
jne 0x4a4517
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a450a
push 0xffffffffffffffff
xor edx, edx
mov ecx, edi
call fcn.004a4a50
add esp, 4
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 edi, dword [ebp - 0x10]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4520
sub ecx, edx
lea eax, [esi - 1]
add eax, ecx
cmp eax, esi
jbe 0x4a4541
mov ecx, eax
dec eax
mov dword [ebp - 4], ecx
cmp byte [eax], 0x2f
je 0x4a4546
cmp eax, esi
ja 0x4a4532
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov bl, byte [ecx]
mov byte [ecx], 0
test eax, eax
je 0x4a4554
mov byte [eax], bh
mov dword [ebp - 0xc], ecx
mov bh, bl
mov ecx, edi
call fcn.004a4370
mov edi, eax
mov eax, dword [ebp - 4]
test edi, edi
jne 0x4a456d
cmp eax, esi
ja 0x4a4514
lea esi, [eax + 1]
mov al, byte [esi]
test al, al
je 0x4a4595
cmp al, 0x2f
je 0x4a460e
call fcn.005450a9
push eax
push esi
call fcn.00544f29
add esi, eax
add esp, 8
mov al, byte [esi]
test al, al
jne 0x4a4576
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 0xc], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a45a4
sub ecx, edx
add ecx, 0x100
test edi, edi
je 0x4a47df
push ecx
call fcn.00531933
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
test edx, edx
je 0x4a47df
mov ecx, edx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a45d5
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a45e5
mov eax, dword [ebp - 4]
sub edx, ecx
mov dword [ebp - 0x10], edx
mov esi, eax
mov byte [eax], bl
test bl, bl
je 0x4a4670
nop dword [eax]
cmp bl, 0x5c
jne 0x4a4649
cmp byte [esi + 1], 0
je 0x4a4658
inc esi
jmp 0x4a4658
lea eax, [esi + 1]
mov byte [esi], 0
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 0xc], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4620
sub ecx, edx
mov edx, dword [ebp - 0xc]
lea eax, [edx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4a4632
sub edx, dword [ebp - 0x10]
add ecx, 0x101
add ecx, edx
jmp 0x4a45b3
cmp bl, 0x3f
je 0x4a4680
cmp bl, 0x2a
je 0x4a4680
cmp bl, 0x5b
je 0x4a4680
call fcn.005450a9
push eax
push esi
call fcn.00544f29
mov bl, byte [esi + eax]
add esi, eax
add esp, 8
test bl, bl
jne 0x4a4600
or esi, 0xffffffff
xor ebx, ebx
jmp 0x4a47fd
cmp dword [edi + 4], 0
je 0x4a46d8
mov dword [edi + 4], 0
mov esi, edi
cmp dword [0x5e34fc], 0
jne 0x4a46a2
test esi, esi
je 0x4a46a2
test byte [esi + 8], 6
jne 0x4a4680
lea eax, [esi + 0x34]
neg esi
sbb esi, esi
and esi, eax
je 0x4a47f7
mov ecx, 0x5c56e4
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a46ec
test dl, dl
je 0x4a46d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a46ec
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a46b8
xor eax, eax
jmp 0x4a46f1
lea eax, [edi + 8]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a468d
xor esi, esi
jmp 0x4a468f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a4680
mov ecx, 0x5c56e8
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a4720
test dl, dl
je 0x4a471c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a4720
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a4700
xor eax, eax
jmp 0x4a4725
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a4680
mov ecx, dword [ebp - 4]
mov edx, esi
push 0
call fcn.004a3240
add esp, 4
test eax, eax
je 0x4a4680
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add ebx, edx
mov ecx, ebx
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4a4750
cmp dword [ebp - 0xc], 0
je 0x4a47ac
mov ecx, edx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4770
sub ecx, edx
mov edx, dword [ebp - 8]
add edx, ecx
mov ecx, dword [ebp - 0xc]
mov byte [edx], 0x2f
inc edx
mov esi, edx
sub esi, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4a4790
mov ecx, dword [ebp - 8]
call fcn.004a44b0
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x4a47c1
push dword [edi + 8]
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.004a4a50
add esp, 4
mov dword [ebp - 0x14], eax
mov esi, eax
mov byte [ebx], 0
test esi, esi
jne 0x4a47d4
mov dword [ebp - 0x18], 1
jmp 0x4a4680
cmp esi, 0xffffffff
je 0x4a4680
jmp 0x4a47fa
mov eax, dword [ebp - 4]
mov byte [eax], bl
or esi, 0xffffffff
xor ebx, ebx
test edi, edi
mov eax, 4
cmovne esi, eax
je 0x4a480e
jmp 0x4a47fd
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0052fd09
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4a4819
mov byte [eax - 1], 0x2f
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a4829
push eax
call fcn.0052fd09
add esp, 4
cmp esi, 0xffffffff
jne 0x4a4835
xor eax, eax
test ebx, ebx
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret