Function at 0x422bb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x65c
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x265]
mov byte [esp + 0x264], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x160]
cmp byte [eax], 0
je 0x422bff
inc eax
dec ecx
jne 0x422bf4
jmp 0x422c32
test ecx, ecx
je 0x422c32
lea edx, [esp + 8]
test edx, edx
je 0x422c14
mov eax, 0x104
sub eax, ecx
jmp 0x422c18
mov eax, dword [esp + 8]
mov ecx, 0x104
push str._system32userinit.exe
sub ecx, eax
lea edx, [esp + eax + 0x164]
push ecx
push edx
call fcn.004057a0
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422e40
lea ecx, [esp + 0x30]
lea edx, [esp + 0x160]
push ecx
push edx
mov ecx, esi
call fcn.00422a50
test eax, eax
je 0x422e40
mov ecx, 0x400
lea eax, [esp + 0x264]
cmp byte [eax], 0
je 0x422c90
inc eax
dec ecx
jne 0x422c85
jmp 0x422cc3
test ecx, ecx
je 0x422cc3
lea eax, [esp + 8]
test eax, eax
je 0x422ca5
mov eax, 0x400
sub eax, ecx
jmp 0x422ca9
mov eax, dword [esp + 8]
mov ecx, 0x400
push str.MD5:
sub ecx, eax
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004057a0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00422e50
add esp, 8
lea edx, [esp + 8]
mov esi, eax
lea eax, [esp + 0x264]
push edx
push 0x400
push eax
call fcn.004057f0
test eax, eax
jl 0x422d0c
mov eax, dword [esp + 8]
mov ecx, 0x400
sub ecx, eax
push esi
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004057a0
mov ecx, 0x400
lea eax, [esp + 0x264]
cmp byte [eax], 0
je 0x422d23
inc eax
dec ecx
jne 0x422d18
jmp 0x422d56
test ecx, ecx
je 0x422d56
lea eax, [esp + 8]
test eax, eax
je 0x422d38
mov eax, 0x400
sub eax, ecx
jmp 0x422d3c
mov eax, dword [esp + 8]
mov ecx, 0x400
push 0x4500a4
sub ecx, eax
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004057a0
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x264]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x45067c
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
lea ecx, [esp + ecx + 0x270]
push ecx
call fcn.004073a0
lea edi, [esp + 0x274]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x4c]
dec ecx
push edx
push 0x45066c
lea eax, [esp + ecx + 0x26c]
push 0x400
push eax
call fcn.004073a0
lea edi, [esp + 0x274]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x264]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ecx, 0x450668
jne 0x422de0
mov ecx, 0x450660
push ecx
push 0x450650
push 0x400
push eax
call fcn.004073a0
mov esi, dword [esp + 0x67c]
add esp, 0x10
cmp esi, 0x7fffffff
ja 0x422e31
mov edi, dword [esp + 0x668]
lea ecx, [esp + 8]
push ecx
push esi
push edi
call fcn.004057f0
test eax, eax
jl 0x422e31
mov eax, dword [esp + 8]
lea edx, [esp + 0x264]
sub esi, eax
push edx
add eax, edi
push esi
push eax
call fcn.004057a0
mov eax, dword [esp + 0x30]
pop edi
pop esi
add esp, 0x65c
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x65c
ret 8