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

Disassembly:
push 0xffffffffffffffff
push 0x465581
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0044cb90
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1090]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], 0
mov ebx, 1
mov dword [esp + 0x1088], ebx
call fcn.00436572
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404de8
push 0x80004005
call fcn.00402280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor ecx, ecx
push 0x12a
push ecx
lea edx, [esp + 0x65e]
push edx
mov byte [esp + 0x1094], 2
mov word [esp + 0x660], cx
call fcn.0044c3e0
mov eax, dword [esp + 0x10a4]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], 0x104
call fcn.0044bb0e
add esp, 0x18
cmp byte [esp + 0x78], 0x5b
je 0x404e65
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.004251f0
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
jmp 0x4054e1
call fcn.00403360
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x78], al
je 0x404e7e
add esi, ebx
cmp byte [esp + esi + 0x78], al
jne 0x404e76
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x274]
push eax
call fcn.0044c460
lea ecx, [esp + esi + 0x85]
push ecx
lea edx, [esp + 0x470]
push 0x1f4
push edx
mov byte [esp + esi + 0x285], 0
call fcn.0044bb0e
add esp, 0x18
push 0x80000002
lea ecx, [esp + 0x34]
call fcn.00421540
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00425260
sub esp, 0xc
lea eax, [esp + 0x278]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov ebx, 4
push eax
mov byte [esp + 0x1098], bl
call fcn.004251f0
call fcn.00424ac0
add esp, 0xc
cmp eax, 8
ja case.default.0x404f0b
jmp dword [eax*4 + 0x405540]
push 0x118
lea ecx, [esp + 0xe8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x46df14
lea edx, [esp + 0x270]
push 0x1f4
push edx
call fcn.0044bb0e
mov al, byte [esp + 0xe94]
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
mov byte [esp + 0x284], al
call fcn.0044bb0e
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x94]
push 0x1f4
push ecx
call fcn.0044bdd7
add esp, 0x24
jmp case.default.0x404f0b
mov ecx, 0x48e73c
call fcn.004251e0
cmp eax, 3
je 0x404fb0
mov edx, dword [0x48e740]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044bb0e
add esp, 0xc
jmp 0x404fec
mov ecx, 0x48e73c
call fcn.004251e0
dec eax
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, 0x48e73c
call fcn.004254f0
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bb0e
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.004252d0
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044bdd7
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405010
sub eax, edx
cmp eax, 3
jae case.default.0x404f0b
push 0x46dd70
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bdd7
add esp, 0xc
jmp case.default.0x404f0b
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044bb0e
add esp, 0xc
jmp case.default.0x404f0b
push 0x118
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044bb0e
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x88]
push 0x1f4
push eax
call fcn.0044bdd7
add esp, 0x18
jmp case.default.0x404f0b
push 0x118
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044bb0e
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044bdd7
add esp, 0x18
jmp case.default.0x404f0b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x405148
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.004251f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.004252d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421560
lea ecx, [esp + 0x14]
call fcn.004026d0
jmp 0x405502
lea edx, [esp + 0x24]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40518f
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x405199
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x78]
push eax
jmp 0x405109
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bb0e
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044bdd7
add esp, 0x18
jmp case.default.0x404f0b
lea edx, [esp + 0x26c]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051f0
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405070
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405211
sub eax, edx
mov byte [esp + eax + 0x26b], cl
jmp 0x405070
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push 0
push 0x46ded0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x658]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0x46debc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x654]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404cd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x108c], 5
call fcn.00402940
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1088], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4052bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bb0e
add esp, 0xc
push 0x118
lea eax, [esp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x46dea4
lea ecx, [esp + 0x784]
push 0x12c
push ecx
call fcn.0044bdd7
add esp, 0xc
cmp edi, 3
je 0x405308
cmp edi, ebx
jne 0x405322
lea edx, [esp + 0x780]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044bb0e
add esp, 0xc
lea ecx, [esp + 0x460]
push ecx
jmp 0x405027
push 0x80000002
lea ecx, [esp + 0x34]
call fcn.00421570
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x46de60
call fcn.00425100
lea ecx, [esp + 0x40]
call fcn.004216b0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x46de50
call fcn.00425100
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x40]
call fcn.00421c60
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x108c], 6
call fcn.004252e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1088], bl
call fcn.004252d0
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x8b0]
push 0x1f4
push edx
call fcn.0044bb0e
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00421c40
lea eax, [esp + 0x8ac]
lea edx, [eax + 1]
jmp 0x4053d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053d0
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x8ac], cl
je 0x4053ee
dec eax
cmp byte [esp + eax + 0x8ac], cl
jne 0x4053e4
inc eax
lea edx, [esp + eax + 0x8ac]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x40540f
mov edi, edi
inc edx
mov byte [esp + ecx + 0xc94], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x405400
push 0x46de40
lea eax, [esp + 0xaa4]
push 0x1f4
push eax
mov byte [esp + ecx + 0xca0], 0
call fcn.0044bb0e
lea ecx, [esp + 0xca0]
push ecx
lea edx, [esp + 0xab0]
push 0x1f4
push edx
call fcn.0044bdd7
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0xabc]
push 0x1f4
push ecx
call fcn.0044bdd7
add esp, 0x18
lea edx, [esp + 0xaac]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004251f0
lea eax, [esp + 0x6c]
push eax
call fcn.00404d70
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x8c]
push 0x1f4
push ecx
call fcn.0044bb0e
add esp, 0x1c
lea ecx, [esp + 0x60]
call fcn.004252d0
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.004251f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.004252d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421560
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1088], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1094]
mov byte [esp + 0x1088], 0
call fcn.004252d0
mov eax, ebp
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0044b4c8
add esp, 0x1078
ret