Function at 0x403780
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42dee1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov al, byte [0x440950]
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x230], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x231]
mov esi, dword [esp + 0x448]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x230]
push esi
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp + 8]
call fcn.00422b94
mov edx, dword [ebp + 0x24]
lea esi, [ebp + 0x24]
lea eax, [esp + 0x230]
mov ecx, esi
push eax
call dword [edx + 4]
test eax, eax
jne 0x4037ff
mov eax, 0x643
jmp 0x403a90
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x10]
push eax
push ecx
xor ebx, ebx
push 0x43c394
push 0x43c388
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [edx + 0x10]
test eax, eax
je 0x403844
mov edx, dword [esp + 0x10]
lea ecx, [ebp + 0x20]
mov eax, dword [edx + 0x18c]
push eax
call fcn.00422b94
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x43c37c
push 0x43c388
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x40388f
mov edx, dword [esp + 0x10]
lea ecx, [ebp + 0x1c]
mov eax, dword [edx + 0x18c]
push eax
call fcn.00422b94
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x14]
push 0x43c358
lea ecx, [ebp + 0x18]
call fcn.00422b94
mov edx, dword [esi]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x43c348
push 0x43c388
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x4038cd
mov edx, dword [esp + 0x10]
lea ecx, [ebp + 0x14]
mov eax, dword [edx + 0x18c]
push eax
call fcn.00422b94
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x43c33c
push 0x43c388
mov ecx, esi
call dword [edx + 0x10]
cmp eax, ebx
je 0x403901
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov edx, dword [eax + 0x10c]
mov dword [ebp + 4], edx
mov edx, dword [esi]
call dword [edx + 0x14]
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x2c], al
xor eax, eax
lea edi, [esp + 0x2d]
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0x104
push ecx
mov ecx, ebp
stosb byte es:[edi], al
call fcn.00403b70
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push 0x43c308
push 0x43c300
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00422a0b
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push 1
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4039cf
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x130], al
xor eax, eax
lea edi, [esp + 0x131]
lea edx, [esp + 0x130]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
push edx
stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
push ebx
push ebx
push 0x43c2f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4039c4
lea ecx, [esp + 0x130]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00422b94
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x43c990]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x338]
mov dword [esp + 0x444], ebx
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.00403ae0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call fcn.00422b44
lea ecx, [esp + 0x18]
mov byte [esp + 0x444], bl
call fcn.00422a0b
push 0x43c2e8
push 0x43c2e0
lea ecx, [esp + 0x1c]
call fcn.00421642
lea eax, [esp + 0x14]
lea ecx, [esp + 0x338]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00422c3a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 2
call fcn.00422b44
lea ecx, [esp + 0x24]
mov byte [esp + 0x444], bl
call fcn.00422a0b
lea eax, [esp + 0x14]
lea ecx, [ebp + 0xc]
push eax
call fcn.00422b44
lea ecx, [esp + 0x14]
mov dword [esp + 0x444], 0xffffffff
call fcn.00422a0b
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x438
ret 4