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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083c67
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi], eax
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x10043150
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10041c20
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10043cb0
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042f39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042f42
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.10007190
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x34]
call fcn.1001f5f0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10041e10
mov eax, dword [eax]
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.10042490
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042fb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x38]
call fcn.1001f5f0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10041b30
mov eax, dword [eax]
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.10042490
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004300c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x14]
call fcn.1001f5f0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10041d10
mov eax, dword [eax]
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.10042490
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10043060
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x4c]
call fcn.1001f5f0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10041f00
mov eax, dword [eax]
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.10042490
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100430b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x100430d0
push 0
mov ecx, edi
call fcn.100434a0
push dword [edi + 0x34]
call ebx
test eax, eax
je 0x100430e2
push 1
mov ecx, edi
call fcn.100434a0
push dword [edi + 0x14]
call ebx
test eax, eax
je 0x100430f7
push dword [edi + 0x14]
mov ecx, edi
push 2
call fcn.10043550
push dword [edi + 0x4c]
call ebx
test eax, eax
je 0x1004310c
push dword [edi + 0x4c]
mov ecx, edi
push 3
call fcn.10043550
mov ecx, edi
call fcn.10043260
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10043132
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a767
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e50
int3