Function at 0x42f080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], edi
call fcn.0046ceb0
xor ebx, ebx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], ebx
call fcn.0046ceb0
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x2c], al
call fcn.00406ad6
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp ecx, ebx
mov dword [ebp - 0x4c], 0xffff
je 0x42f5d5
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x42f5d5
push ebx
push ebx
mov dword [ecx], ebx
push 0xcc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xfc]
mov dword [eax], ebx
call fcn.0046d810
test eax, eax
jne 0x42f130
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x42f194
jmp 0x42f188
push ebx
push 0x1c87
lea ecx, [ebp - 0xfc]
call fcn.004a8f80
push eax
lea ecx, [ebp - 0xd0]
call fcn.0046d3e0
test eax, eax
jne 0x42f1d6
mov ecx, edi
call fcn.0042f6d0
push ebx
push 0x1c87
lea ecx, [ebp - 0xfc]
call fcn.004a8f80
push eax
lea ecx, [ebp - 0xd0]
call fcn.0046d3e0
test eax, eax
jne 0x42f1d6
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x42f194
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x1c], ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406ad6
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.0046cf30
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.0046cf30
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov cl, byte [ebp + 0xf]
push ebx
mov byte [ebp - 0x68], cl
lea ecx, [ebp - 0x68]
call fcn.00406ad6
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0xd0]
push edx
call fcn.0046ecc0
test eax, eax
je 0x42f4fc
lea ecx, [ebp - 0xa4]
call fcn.0046ceb0
lea eax, [ebp - 0x68]
push ebx
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.004a8f80
push eax
lea ecx, [ebp - 0xa4]
call fcn.0046d070
test eax, eax
je 0x42f424
mov cl, byte [ebp + 0xf]
push ebx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
call fcn.00406ad6
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x200]
push 0x104
push edx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
ja 0x42f27c
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x42f41a
jmp 0x42f40e
mov ecx, edi
call fcn.0042ce90
test eax, eax
mov eax, dword [ebp - 0x64]
je 0x42f2ab
cmp eax, ebx
jne 0x42f293
mov eax, 0x4d68e8
push eax
lea eax, [ebp - 0x200]
push eax
lea ecx, [ebp - 0x44]
push 0x1bb3
push ecx
call fcn.0041c3cf
jmp 0x42f2ca
cmp eax, ebx
jne 0x42f2b4
mov eax, 0x4d68e8
lea edx, [ebp - 0x200]
push eax
push edx
lea eax, [ebp - 0x44]
push 0x4f3004
push eax
call fcn.00430ae0
mov cl, byte [ebp + 0xf]
add esp, 0x10
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14], esp
push ebx
mov dword [ebp - 0x14], esi
mov byte [esi], cl
mov ecx, esi
call fcn.00406ad6
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edx, dword [0x4d68ec]
lea eax, [ebp - 0x44]
push edx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040b3b2
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0042f640
cmp eax, ebx
je 0x42f268
lea ecx, [ebp - 0x48]
push ebx
push ecx
push 0x1c8a
lea ecx, [ebp - 0xa4]
call fcn.0046dab0
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jbe 0x42f403
push eax
mov byte [ebp - 4], 7
call fcn.004bf598
mov edx, dword [ebp - 0x48]
add esp, 4
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x14], eax
push ecx
push eax
push 0x1c89
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x78], edx
call fcn.0046e1b0
mov eax, 0xcccccccd
mul dword [ebp - 0x78]
mov edi, edx
shr edi, 4
xor esi, esi
cmp esi, edi
jge 0x42f3f9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x50]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
push eax
call fcn.0042efe0
cmp eax, ebx
je 0x42f3f3
lea ecx, [ebp - 0x74]
push 0xff
push ecx
push 0x1c8d
lea ecx, [ebp - 0xa4]
call fcn.0046dab0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x74]
cmp eax, edx
jae 0x42f3f3
mov eax, dword [0x4d68ec]
lea ecx, [ebp - 0x68]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b3b2
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push ebx
push eax
push 0x1c8b
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x4c], edx
call fcn.0046dab0
lea ecx, [ebp - 0x6c]
push ebx
push ecx
push 0x1c8c
lea ecx, [ebp - 0xa4]
call fcn.0046dab0
inc esi
jmp 0x42f36f
mov edi, dword [ebp - 0x50]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x42f41a
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x34], ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00406ad6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.0046cf30
jmp 0x42f1ef
mov edx, dword [0x4d68ec]
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0040b3b2
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x42f533
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x42f557
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42f54e
cmp al, 0xff
je 0x42f54e
dec al
mov byte [ecx], al
jmp 0x42f557
push ecx
call fcn.004be17b
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], ebx
cmp eax, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
je 0x42f573
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42f597
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42f58e
cmp al, 0xff
je 0x42f58e
dec al
mov byte [ecx], al
jmp 0x42f597
push ecx
call fcn.004be17b
add esp, 4
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
call fcn.0046cf30
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.0046cf30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.CHelper::GetAdvancedFeaturesCapabilities____Null_parameter._n
push 0x503ff0
call fcn.00423100
mov eax, dword [ebp - 0x1c]
add esp, 8
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x42f5fe
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x1c], ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406ad6
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.0046cf30
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.0046cf30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0xc1000404
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc