Function at 0x404170
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x421ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, ecx
push str.Install_xp_run..
mov dword [esp + 0x18], esi
call fcn.00412950
add esp, 4
xor ebx, ebx
xor ebp, ebp
call fcn.00406a00
test eax, eax
jne 0x4041de
push str.this_os_need_reinstall_RNDIS_driver_patch_
call fcn.00412950
add esp, 4
push esi
call fcn.00406bc0
lea ecx, [esp + 0x18]
call fcn.00410080
push eax
mov edi, str.Driver
lea esi, [esp + 0x54]
mov dword [esp + 0x2c4], ebx
call fcn.00408e30
add esp, 4
mov byte [esp + 0x2c0], 2
cmp dword [esp + 0x30], 0x10
jb 0x40421c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041300c
add esp, 4
lea ecx, [esp + 0x50]
push ecx
mov edi, str..inf
lea esi, [esp + 0x38]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00408e30
add esp, 4
push 0x140
lea edx, [esp + 0x70]
push ebx
push edx
mov byte [esp + 0x2cc], 3
call fcn.00418e90
add esp, 0xc
push 0x103
lea eax, [esp + 0x1b1]
push ebx
push eax
mov byte [esp + 0x1b8], bl
call fcn.00418e90
mov eax, dword [esp + 0x44]
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x4c], edi
jae 0x40428d
lea eax, [esp + 0x38]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4042d0
push str.Install_xp_hFind_is__INVALID_HANDLE_VALUE
call fcn.00412a50
add esp, 4
mov byte [esp + 0x2c0], 2
cmp dword [esp + 0x4c], edi
jb 0x404406
mov edx, dword [esp + 0x38]
push edx
jmp 0x4043fe
lea eax, [esp + 0x98]
push eax
push str.find_driver__s
call fcn.00412950
lea ecx, [esp + 0xa0]
add esp, 8
test ecx, ecx
je 0x404330
lea edx, [esp + 0x1ac]
test edx, edx
je 0x404330
push 0x2e
push str.the_character_is__d
call fcn.00412950
mov al, byte [esp + 0xa0]
add esp, 8
cmp al, 0x2e
je 0x40433d
xor ecx, ecx
cmp al, bl
je 0x40433d
mov byte [esp + ecx + 0x1ac], al
mov al, byte [esp + ecx + 0x99]
inc ecx
cmp al, 0x2e
jne 0x404317
jmp 0x40433d
push str.strCopyTo_parameter_is_invalid
call fcn.004129d0
add esp, 4
lea eax, [esp + 0x1ac]
push 0x104
push eax
call fcn.0041377b
add esp, 8
lea ecx, [esp + 0x1ac]
push ecx
call fcn.00402e50
cmp eax, ebx
jne 0x4043cf
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x404371
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404390
push str.Driver_is_not_exist_
mov ebp, 0x4e24
call fcn.00412a50
add esp, 4
jmp 0x4043cf
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x40439e
lea ecx, [esp + 0x54]
cmp ecx, ebx
jne 0x4043b6
push str.InstallDirverFiles_parameter_is_invalid
call fcn.004129d0
add esp, 4
mov ebp, 0x4e25
jmp 0x4043c1
call fcn.004029f0
mov ebp, eax
cmp ebp, ebx
je 0x4043cf
push ebp
push str.InstallDirverFiles_error_with_error_code:__d
call fcn.00412a50
add esp, 8
lea edx, [esp + 0x6c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4042d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x2c0], 2
cmp dword [esp + 0x4c], edi
jb 0x404406
mov eax, dword [esp + 0x38]
push eax
call fcn.0041300c
add esp, 4
mov ecx, dword [esp + 0x14]
push 0x424da5
mov byte [esp + 0x3c], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xf
call fcn.004030b0
test eax, eax
je 0x404434
push str.find_cdrom_...
call fcn.00412950
jmp 0x404443
push str.Cant_find_CDRom_
mov ebp, 0x4e25
call fcn.004129d0
add esp, 4
push ebp
push str.Install_xp__exit.Code:_d
call fcn.00412950
add esp, 8
cmp dword [esp + 0x68], edi
jb 0x404467
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041300c
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00413017
add esp, 0x2b0
ret