Function at 0x4206e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x70e00c]
xor eax, esp
mov dword [esp + 0x848], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x420725
mov eax, dword [edi + 0x18]
mov dword [esp + 0x14], eax
mov esi, dword [edi + 0x18]
push esi
mov dword [esp + 0x1c], 0
call fcn.00628843
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x420d13
push 0xa
push 0x6ea700
push ebx
call fcn.00627fab
add esp, 0xc
test eax, eax
lea eax, [esp + 0x10]
je 0x420763
push 1
jmp 0x420765
push 0
push eax
push ebx
call fcn.00628843
add esp, 4
mov ecx, eax
call fcn.0042cdc0
mov ebx, eax
add esp, 8
test ebx, ebx
jle 0x42085b
mov esi, dword [esp + 0x10]
push 0x5c
mov esi, dword [esi]
push esi
call fcn.005fad20
mov edi, eax
add esp, 8
test edi, edi
jne 0x4207af
push 0x2f
push esi
call fcn.005fad20
mov edi, eax
add esp, 8
test edi, edi
jne 0x4207af
mov edi, esi
jmp 0x4207b0
inc edi
push str.rundll32.exe
push edi
call fcn.00628761
add esp, 8
test eax, eax
je 0x420839
push str.rundll32
push edi
call fcn.00628761
add esp, 8
test eax, eax
je 0x420839
push str.regsvr32.exe
push edi
call fcn.00628761
add esp, 8
test eax, eax
je 0x420819
push str.regsvr32
push edi
call fcn.00628761
add esp, 8
test eax, eax
je 0x420819
mov edi, dword [esp + 0x10]
push str.autocheck
push dword [edi]
call fcn.00628761
add esp, 8
test eax, eax
jne 0x420857
cmp ebx, 1
jle 0x420857
mov esi, dword [edi + 4]
jmp 0x420857
mov ecx, 1
cmp ebx, ecx
jle 0x420857
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4]
cmp byte [eax], 0x2f
jne 0x420835
inc ecx
cmp ecx, ebx
jl 0x420826
jmp 0x420857
mov esi, eax
jmp 0x420857
cmp ebx, 1
jle 0x420857
mov eax, dword [esp + 0x10]
push 0x6e9d0c
push dword [eax + 4]
call fcn.0061a85d
add esp, 8
test eax, eax
cmovne esi, eax
mov edi, dword [esp + 0xc]
push 0x2525
push esi
call fcn.005fa980
add esp, 8
test eax, eax
lea eax, [esp + 0x48]
je 0x420880
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
jmp 0x420897
push 0x3ff
push esi
push eax
call fcn.00601480
add esp, 0xc
mov byte [esp + 0x447], 0
lea eax, [esp + 0x48]
push 0x400
push eax
push eax
call fcn.00404010
add esp, 0xc
test eax, eax
jns 0x4209c2
lea eax, [esp + 0x48]
push 0x2e
push eax
call fcn.005fad20
mov esi, eax
add esp, 8
test esi, esi
je 0x4208f3
push 0x6ea750
push esi
call fcn.00628761
add esp, 8
test eax, eax
je 0x4209c2
push str..dll
push esi
call fcn.00628761
add esp, 8
test eax, eax
je 0x4209c2
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x48]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x44f], al
test al, al
jne 0x420900
lea ecx, [esp + 0x48]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x420917
mov eax, dword [0x6ea750]
mov dword [ecx], eax
mov al, byte [0x6ea754]
mov byte [ecx + 4], al
lea eax, [esp + 0x48]
push 0x400
push eax
push eax
call fcn.00404010
add esp, 0xc
test eax, eax
jns 0x4209c2
push 0x3fb
lea eax, [esp + 0x454]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00601480
lea ecx, [esp + 0x54]
mov byte [esp + 0x44f], 0
add esp, 0xc
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x420970
mov eax, dword [str..dll]
mov dword [ecx], eax
mov al, byte [0x6ea75c]
mov byte [ecx + 4], al
lea eax, [esp + 0x48]
push 0x400
push eax
push eax
call fcn.00404010
add esp, 0xc
test eax, eax
jns 0x4209c2
push 0x3ff
lea eax, [esp + 0x454]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00601480
add esp, 0xc
mov byte [esp + 0x447], 0
lea eax, [esp + 0x48]
push 0x7e
push eax
call fcn.005fa980
add esp, 8
test eax, eax
je 0x4209e6
push 0x400
lea eax, [esp + 0x4c]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameA]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4209fe
test al, 0x10
jne 0x420d28
cmp dword [edi + 0x20], 0
je 0x420a47
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], 0
call dword [0x7170e4]
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x420ce8
mov esi, dword [ebx + 0x24]
add esi, ebx
jmp 0x420a4a
mov esi, dword [edi + 8]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420a50
sub ecx, edx
mov edx, dword [esp + 0x14]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x420a60
sub edx, edi
lea edi, [esp + 0x48]
lea ebx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x420a70
sub edi, ebx
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + 0x18]
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x420a87
sub ebx, dword [esp + 0x20]
lea eax, [edi + ebx]
mov edi, dword [esp + 0xc]
add eax, edx
lea ebx, [ecx + 0x54]
add ebx, eax
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x420abc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ab0
sub ecx, edx
inc ebx
add ebx, ecx
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x420ad2
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ac6
sub ecx, edx
inc ebx
add ebx, ecx
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x420aec
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ae0
sub ecx, edx
inc ebx
add ebx, ecx
push ebx
call fcn.0060a1f7
mov edi, eax
add esp, 4
test edi, edi
je 0x420ce4
push ebx
push 0
push edi
call fcn.005f46f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [edi], ebx
mov eax, dword [eax]
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ecx]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x420b37
mov dword [edi + 0x28], eax
jmp 0x420b55
cmp eax, 1
jne 0x420b45
mov dword [edi + 0x28], 2
jmp 0x420b55
cmp eax, 2
jne 0x420cdb
mov dword [edi + 0x28], 1
lea ebx, [edi + 0x38]
mov ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x420b60
mov ecx, ebx
mov dword [edi + 0x10], 0x38
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420b80
movups xmm0, xmmword [str.SysdiagDisabledAutoruns]
sub ecx, edx
lea esi, [ebx + ecx]
mov ebx, dword [esp + 0x14]
movups xmmword [esi + 1], xmm0
lea eax, [esi + 1]
mov ecx, ebx
movq xmm0, qword [0x6ea770]
lea edx, [esi + 0x19]
sub eax, edi
movq qword [esi + 0x11], xmm0
mov dword [edi + 0x14], eax
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x420bb7
lea eax, [esi + 0x19]
sub eax, edi
lea ecx, [ebx + 1]
mov dword [edi + 0x18], eax
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x420bd0
sub ebx, ecx
add esi, 0x1a
add esi, ebx
lea ecx, [esp + 0x48]
mov edx, esi
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x420bf0
mov eax, esi
lea ecx, [esp + 0x48]
sub eax, edi
lea edx, [ecx + 1]
mov dword [edi + 0x1c], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420c10
mov ebx, dword [esp + 0xc]
sub ecx, edx
add esi, ecx
mov ecx, dword [ebx + 0x18]
lea edx, [esi + 1]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x420c25
lea eax, [esi + 1]
sub eax, edi
mov dword [edi + 0x20], eax
mov ecx, dword [ebx + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420c41
sub ecx, edx
add esi, 2
add esi, ecx
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x420c7f
mov edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x420c58
mov eax, esi
sub eax, edi
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420c73
sub ecx, edx
inc esi
add esi, ecx
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x420caf
mov edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x420c88
mov eax, esi
sub eax, edi
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ca3
sub ecx, edx
inc esi
add esi, ecx
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x420ccb
mov edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x420cb8
sub esi, edi
mov dword [edi + 0x34], esi
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
push edi
call fcn.005fa0fb
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420cf9
push eax
call fcn.005fa0fb
add esp, 4
push dword [esp + 0x24]
call fcn.005fa0fb
add esp, 4
test ebx, ebx
je 0x420d13
push ebx
call dword [0x71721c]
add esp, 4
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x420ce8