Function at 0x405070
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4217a6
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c8]
mov dword fs:[0], eax
mov esi, ecx
push str.Install_xp_run..
mov dword [esp + 0x20], esi
call fcn.004124a0
xor ebx, ebx
add esp, 4
mov dword [esp + 0x18], ebx
call fcn.00407160
test eax, eax
jne 0x4050e1
push str.this_os_need_reinstall_RNDIS_driver_patch_
call fcn.004124a0
add esp, 4
mov ecx, esi
call fcn.00407320
push 0x104
lea eax, [esp + 0x1b8]
push ebx
push eax
call fcn.004183e0
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.0040fd30
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x40510f
mov eax, dword [eax + 4]
jmp 0x405112
add eax, 4
push 0x103
push eax
lea ecx, [esp + 0x1bc]
push ecx
call fcn.00413040
add esp, 0xc
cmp dword [esp + 0x54], ebp
jb 0x40513b
mov edx, dword [esp + 0x40]
push edx
call fcn.0041288e
add esp, 4
lea eax, [esp + 0x1b4]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x405143
mov ecx, dword [str.Driver]
mov edx, dword [0x424a10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edi, 0xf
lea eax, [esp + 0x1b4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405177
sub eax, edx
push eax
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x28]
call fcn.00401c30
push 6
push str..inf
lea eax, [esp + 0x28]
mov dword [esp + 0x3d8], ebx
call fcn.00401740
push 0x104
lea ecx, [esp + 0x2c0]
push ebx
push ecx
call fcn.004183e0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x38], ebp
jae 0x4051cd
lea eax, [esp + 0x24]
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405210
push str.Install_xp_hFind_is__INVALID_HANDLE_VALUE
call fcn.00412620
add esp, 4
mov dword [esp + 0x3d0], esi
cmp dword [esp + 0x38], ebp
jb 0x405207
mov eax, dword [esp + 0x24]
push eax
call fcn.0041288e
add esp, 4
mov dword [esp + 0x38], edi
jmp 0x40533b
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x3d0], 1
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0xa0]
push ecx
push str.find_driver__s
call fcn.004124a0
push 0x2e
push str.the_character_is__d
call fcn.004124a0
mov al, byte [esp + 0xb0]
add esp, 0x10
cmp al, 0x2e
je 0x405277
xor ecx, ecx
mov edi, edi
cmp al, bl
je 0x405277
mov byte [esp + ecx + 0x2bc], al
mov al, byte [esp + ecx + 0xa1]
inc ecx
cmp al, 0x2e
jne 0x405260
lea edx, [esp + 0x2bc]
push edx
call fcn.00412c85
add esp, 4
lea eax, [esp + 0x2bc]
push eax
call fcn.00403e60
cmp eax, ebx
jne 0x4052df
lea ecx, [esp + 0x1b4]
push ecx
call ebp
test eax, eax
jne 0x4052bd
push str.Driver_is_not_exist_
mov dword [esp + 0x1c], 0x4e24
call fcn.00412620
add esp, 4
jmp 0x4052df
lea ecx, [esp + 0x1b4]
call fcn.00403a40
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4052df
push eax
push str.InstallDirverFiles_error_with_error_code:__d
call fcn.00412620
add esp, 8
lea edx, [esp + 0x74]
push edx
push esi
call edi
cmp eax, 1
je 0x405230
mov edi, 0x10
cmp dword [esp + 0x54], edi
jb 0x405308
mov eax, dword [esp + 0x40]
push eax
call fcn.0041288e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x3d0], 0xffffffff
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x38], edi
jb 0x405337
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x1c]
push 0x423d93
lea edx, [esp + 0x5c]
mov byte [esp + 0x28], bl
mov dword [esp + 0x38], ebx
call fcn.00402d40
cmp eax, 0xffffffff
je 0x40536d
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push str.find_cdrom_...
call fcn.004124a0
jmp 0x40537f
push str.Cant_find_CDRom_
mov dword [esp + 0x1c], 0x4e25
call fcn.00412560
mov esi, dword [esp + 0x1c]
add esp, 4
push esi
push str.Install_xp__exit.Code:_d
call fcn.004124a0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x3c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b0]
xor ecx, esp
call fcn.00412899
add esp, 0x3c0
ret