Function at 0x402940
Capabilities:
Contain obfuscated stackstrings
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x418048
push 0x403ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x419004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4f0], 0
push 0x208
push 0
lea eax, [ebp - 0x4e8]
push eax
call fcn.00404180
push 0x208
push 0
lea eax, [ebp - 0x2e0]
push eax
call fcn.00404180
add esp, 0x18
mov dword [ebp - 0xd8], 0x590053
mov dword [ebp - 0xd4], 0x540053
mov dword [ebp - 0xd0], 0x4d0045
mov dword [ebp - 0xcc], 0x43005c
mov dword [ebp - 0xc8], 0x720075
mov dword [ebp - 0xc4], 0x650072
mov dword [ebp - 0xc0], 0x74006e
mov dword [ebp - 0xbc], 0x6f0043
mov dword [ebp - 0xb8], 0x74006e
mov dword [ebp - 0xb4], 0x6f0072
mov dword [ebp - 0xb0], 0x53006c
mov dword [ebp - 0xac], 0x740065
mov dword [ebp - 0xa8], 0x53005c
mov dword [ebp - 0xa4], 0x720065
mov dword [ebp - 0xa0], 0x690076
mov dword [ebp - 0x9c], 0x650063
mov dword [ebp - 0x98], 0x5c0073
xor eax, eax
mov word [ebp - 0x94], ax
mov dword [ebp - 0x90], 0x73004d
mov dword [ebp - 0x8c], 0x440069
mov dword [ebp - 0x88], 0x740061
mov dword [ebp - 0x84], 0x620061
mov dword [ebp - 0x80], 0x730061
mov dword [ebp - 0x7c], 0x500065
mov dword [ebp - 0x78], 0x740061
mov dword [ebp - 0x74], 0x68
mov dword [ebp - 0x54], 0x57004e
mov dword [ebp - 0x50], 0x300045
mov dword [ebp - 0x4c], 0x300030
mov dword [ebp - 0x48], 0x330030
mov dword [ebp - 0x44], 0x2e0032
mov dword [ebp - 0x40], 0x73006d
mov dword [ebp - 0x3c], 0x69
mov dword [ebp - 0x70], 0x57004e
mov dword [ebp - 0x6c], 0x300045
mov dword [ebp - 0x68], 0x300030
mov dword [ebp - 0x64], 0x360030
lea ecx, [eax + 0x34]
mov dword [ebp - 0x60], 0x2e0034
mov dword [ebp - 0x5c], 0x73006d
mov dword [ebp - 0x58], 0x69
mov dword [ebp - 0x38], 0x57004e
mov dword [ebp - 0x34], 0x300045
mov dword [ebp - 0x30], 0x410030
mov dword [ebp - 0x2c], 0x360061
mov dword [ebp - 0x28], 0x2e0034
mov dword [ebp - 0x24], 0x73006d
mov dword [ebp - 0x20], 0x69
test edi, edi
je 0x402c7b
mov dword [ebp - 4], eax
call fcn.00402070
mov dword [edi + 0x11c1c], eax
call fcn.004028e0
mov dword [edi + 0x11c20], eax
push ecx
push 0x23
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004013a0
add esp, 0xc
test eax, eax
je 0x402c5d
sub esp, 8
push 0x80
lea eax, [edi + 0x28]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004014f0
add esp, 0x10
test eax, eax
je 0x402c5d
lea eax, [ebp - 0x4f0]
push eax
push 0xf0003
push 0
lea eax, [ebp - 0x2e0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c0d
mov dword [ebp - 0x4ec], 0x208
lea eax, [ebp - 0x4ec]
push eax
lea eax, [ebp - 0x4e8]
push eax
push 0
push 0
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x4f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402c0d
cmp word [ebp - 0x4e8], ax
je 0x402c0d
lea ebx, [eax + 1]
jmp 0x402c0f
xor ebx, ebx
lea esi, [edi + 0x11c24]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402c5d
test ebx, ebx
je 0x402c38
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
jmp 0x402c55
cmp dword [edi + 0x11c20], 0
je 0x402c46
lea eax, [ebp - 0x38]
jmp 0x402c55
cmp dword [edi + 0x11c1c], 0
lea eax, [ebp - 0x54]
je 0x402c55
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x402c7d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040331c
mov esp, ebp
pop ebp
ret