Function at 0x428630
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 0x42867f
inc eax
dec ecx
jne 0x428674
jmp 0x4286b2
test ecx, ecx
je 0x4286b2
lea edx, [esp + 8]
test edx, edx
je 0x428694
mov eax, 0x104
sub eax, ecx
jmp 0x428698
mov eax, dword [esp + 8]
mov ecx, 0x104
push 0x46d12c
sub ecx, eax
lea edx, [esp + eax + 0x164]
push ecx
push edx
call fcn.004054a0
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 0x4288c0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x160]
push ecx
push edx
mov ecx, esi
call fcn.004284d0
test eax, eax
je 0x4288c0
mov ecx, 0x400
lea eax, [esp + 0x264]
cmp byte [eax], 0
je 0x428710
inc eax
dec ecx
jne 0x428705
jmp 0x428743
test ecx, ecx
je 0x428743
lea eax, [esp + 8]
test eax, eax
je 0x428725
mov eax, 0x400
sub eax, ecx
jmp 0x428729
mov eax, dword [esp + 8]
mov ecx, 0x400
push 0x46d124
sub ecx, eax
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004054a0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004288d0
add esp, 8
lea edx, [esp + 8]
mov esi, eax
lea eax, [esp + 0x264]
push edx
push 0x400
push eax
call fcn.004054f0
test eax, eax
jl 0x42878c
mov eax, dword [esp + 8]
mov ecx, 0x400
sub ecx, eax
push esi
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004054a0
mov ecx, 0x400
lea eax, [esp + 0x264]
cmp byte [eax], 0
je 0x4287a3
inc eax
dec ecx
jne 0x428798
jmp 0x4287d6
test ecx, ecx
je 0x4287d6
lea eax, [esp + 8]
test eax, eax
je 0x4287b8
mov eax, 0x400
sub eax, ecx
jmp 0x4287bc
mov eax, dword [esp + 8]
mov ecx, 0x400
push 0x46cb3c
sub ecx, eax
lea edx, [esp + eax + 0x268]
push ecx
push edx
call fcn.004054a0
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x264]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x46d114
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
lea ecx, [esp + ecx + 0x270]
push ecx
call fcn.00407080
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 0x46d104
lea eax, [esp + ecx + 0x26c]
push 0x400
push eax
call fcn.00407080
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, 0x46d100
jne 0x428860
mov ecx, 0x46d0f8
push ecx
push 0x46d0e8
push 0x400
push eax
call fcn.00407080
mov esi, dword [esp + 0x67c]
add esp, 0x10
cmp esi, 0x7fffffff
ja 0x4288b1
mov edi, dword [esp + 0x668]
lea ecx, [esp + 8]
push ecx
push esi
push edi
call fcn.004054f0
test eax, eax
jl 0x4288b1
mov eax, dword [esp + 8]
lea edx, [esp + 0x264]
sub esi, eax
push edx
add eax, edi
push esi
push eax
call fcn.004054a0
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