Function at 0x4038c0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x564
mov eax, dword [0x416174]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
call fcn.004036b0
cmp dword [str.ati.dll], 0
mov dword [esp + 0x14], 0
je 0x403ae3
mov ebx, 0x4195b8
sub ebx, dword [ebp + 8]
mov eax, 0x416fe8
mov esi, dword [eax]
mov eax, dword [ebp + 8]
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x403910
push 0x5c
push 0x4195b8
call fcn.00405410
mov ecx, 1
sub ecx, esi
add esp, 8
add ecx, eax
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x403932
lea edx, [esp + 0x18]
push edx
push 0x4195b8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403ac5
lea esp, [esp]
xor eax, eax
mov cl, byte [eax + str.drivers_atikmdag_patched]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403962
mov edi, 0x4193b0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403980
mov ax, word [0x413f88]
mov word [edi], ax
lea eax, [esp + 0x44]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403997
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4039a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x4039c0
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4039d5
push 0x5c
push 0x4195b8
lea esi, [esp + 0x4c]
call fcn.00405410
mov ecx, 1
mov edx, esi
sub ecx, edx
add esp, 8
add ecx, eax
lea ecx, [ecx]
mov al, byte [esi]
mov byte [esi + ecx], al
inc esi
test al, al
jne 0x403a00
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + str.....]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403a10
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a27
mov ax, word [0x413f88]
mov word [edi], ax
mov eax, 0x4195b8
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403a40
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403a51
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x403a70
push 0
lea ecx, [esp + 0x364]
push ecx
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
test al, al
je 0x403fd8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403960
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp dword [eax*4 + 0x416fe8], 0
mov dword [esp + 0x14], eax
lea eax, [eax*4 + 0x416fe8]
jne 0x403904
cmp dword [str.ati.dll], 0
mov dword [esp + 0x14], 0
je 0x403ca1
mov eax, 0x416fe8
lea ecx, [ecx]
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403c83
jmp 0x403b20
xor eax, eax
mov cl, byte [eax + str.drivers_atikmdag_patched]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403b22
mov edi, 0x4193b0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b40
mov bx, word [0x413f88]
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403b58
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403b70
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x403b90
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x403b90
xor eax, eax
jmp 0x403bb0
mov cl, byte [eax + str.......System32]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403bb0
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403bc7
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403bd8
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403bf0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x403c10
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x403c10
push 0
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
test al, al
jne 0x403c60
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403fd8
test eax, 0x400
je 0x403fd8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403b20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp dword [eax*4 + 0x416fe8], 0
mov dword [esp + 0x14], eax
lea eax, [eax*4 + 0x416fe8]
jne 0x403b00
push str...Sysnative
call fcn.004111df
add esp, 4
test eax, eax
jne 0x403fbe
mov dword [esp + 0x14], eax
cmp dword [str.ati.dll], eax
je 0x403ee1
mov eax, 0x416fe8
jmp 0x403cd0
mov eax, dword [eax]
xor ecx, ecx
jmp 0x403ce0
mov dl, byte [ecx + str...System32]
mov byte [ecx + 0x4193b0], dl
inc ecx
test dl, dl
jne 0x403ce0
mov edi, 0x4193b0
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403cf7
mov cx, word [0x413f88]
mov word [edi], cx
mov ecx, eax
jmp 0x403d10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403d10
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403d21
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x18]
mov ecx, eax
push edx
and ecx, 3
push 0x4193b0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403ec3
jmp 0x403d60
xor eax, eax
mov cl, byte [eax + str.drivers_atikmdag_patched]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403d62
mov edi, 0x4193b0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d80
mov bx, word [0x413f88]
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403d98
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403db0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x403dd0
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x403dd0
xor eax, eax
jmp 0x403df0
mov cl, byte [eax + str.......SysWOW64]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403df0
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403e07
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403e18
mov edi, 0x4193b0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x403e50
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x403e50
push 0
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
test al, al
jne 0x403ea0
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403fd8
test eax, 0x400
je 0x403fd8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403d60
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp dword [eax*4 + 0x416fe8], 0
mov dword [esp + 0x14], eax
lea eax, [eax*4 + 0x416fe8]
jne 0x403cd0
xor eax, eax
mov cl, byte [eax + str...System32]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403ee3
mov edi, 0x4193b0
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f00
mov dx, word [0x413f88]
mov word [edi], dx
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f18
mov ecx, 6
mov esi, str.drivers_atikmdag_patched
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
nop
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x403f30
xor eax, eax
jmp 0x403f50
mov cl, byte [eax + str.....System32]
mov byte [eax + 0x4193b0], cl
inc eax
test cl, cl
jne 0x403f50
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f67
mov word [edi], dx
mov edi, 0x4193b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f78
mov ecx, 6
mov esi, str.drivers_atikmdag_patched
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
nop
mov cl, byte [eax + 0x4193b0]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x403f90
push 1
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
test al, al
je 0x403fd8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.00404c21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x56c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404c21
mov esp, ebp
pop ebp
ret