Function at 0x422c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4539c7
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x473018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0x5c
mov dword [ebp - 4], 1
mov ecx, dword [eax + 0x10]
cmp ecx, 0x7ffffffe
je 0x4230b1
cmp dword [eax + 0x14], 8
jb 0x422cde
mov eax, dword [eax]
push 1
lea edx, [ebp - 0xa8]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0xac]
lea ecx, [ebp - 0xa0]
call fcn.0041b6c0
push edi
lea edx, [ebp - 0xa0]
mov dword [ebp - 0xa4], 2
lea ecx, [ebp - 0x70]
call fcn.00419760
add esp, 4
mov byte [ebp - 4], 2
mov edi, 2
mov dword [ebp - 0xa4], edi
and edi, 0xfffffffd
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.004040c0
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.WorkingDirectorySys
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00404580
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
mov edx, 0x80000002
push eax
lea ecx, [ebp - 0x88]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00403940
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004040c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x422ddc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422dd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4230b6
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422e56
test al, 0x10
je 0x422e56
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
or edi, 1
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 3
jmp 0x422fbd
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.WorkingDirectoryUwp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00404580
mov byte [ebp - 4], 9
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
mov edx, 0x80000002
push eax
lea ecx, [ebp - 0x88]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403940
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x88]
call fcn.004040c0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x422ef4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422eea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4230bb
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422ff7
test al, 0x10
je 0x422ff7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
or edi, 1
movups xmm0, xmmword [ebp - 0x58]
mov dword [esi + 0x14], 0
mov word [ebp - 0x58], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x422fbd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422fb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4230ac
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x70]
call fcn.004040c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432e76
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov ecx, esi
push 4
movups xmmword [esi], xmm0
push str.none
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00404580
or edi, 1
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x42305c
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x423052
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4230ac
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x422fbd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422fb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x422fb3
call fcn.0043c8de
call fcn.00402cd0
call fcn.0043c8de
call fcn.0043c8de
int3