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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a568
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x44a630]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
mov eax, dword [0x44a630]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
push 0x63
lea eax, [esp + 0xa1]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x44], esi
mov byte [esp + 0xa8], 0
call fcn.00425510
mov eax, dword [esi + 0x1154]
sub eax, 0x10
push eax
mov dword [esp + 0x40], 0x64
mov dword [esp + 0x4c], 1
call fcn.00401b50
lea ebx, [eax + 0x10]
add esp, 0x10
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x34]
push ecx
push 0xf003f
push 0
push ebx
push SysReAllocStringLen
mov dword [esp + 0x22c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403aec
lea eax, [ebx - 0x10]
mov dword [esp + 0x218], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.004230ad
mov esp, ebp
pop ebp
ret
push 0x64
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.00425510
mov eax, dword [esi + 0x1158]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403b4a
mov dword [esp + 0x218], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x403aba
call fcn.00406e7b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403b64
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x20]
push 0x440c88
push edx
mov byte [esp + 0x224], 1
call fcn.00401dd0
add esp, 0xc
push 0x100
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esi + 0x115c]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403bb1
lea edi, [esp + 0x104]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403bc8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00406e7b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403bfa
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x24]
push 0x440c88
push edx
mov byte [esp + 0x224], 2
call fcn.00401dd0
mov esi, dword [esp + 0x2c]
push 0
push esi
call fcn.00423f83
add esp, 0x14
cmp eax, 0xffffffff
jne 0x403c92
lea eax, [esi - 0x10]
mov byte [esp + 0x218], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403b2a
push 0x440ba0
lea ecx, [esp + 0x18]
call fcn.00402b80
push 0x440ba0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x21c], 3
call fcn.00402b80
push 0x440ba0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x21c], 4
call fcn.00402b80
lea ecx, [esp + 0x40]
mov byte [esp + 0x218], 5
call fcn.004116c1
push 0
mov bl, 6
mov byte [esp + 0x21c], bl
mov ecx, dword [esp + 0x24]
push 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411aee
test eax, eax
je 0x403d6b
push 0
push 0x1000
push 1
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x64]
call fcn.00412476
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x58]
mov byte [esp + 0x21c], 7
call fcn.00405610
lea ecx, [esp + 0x27]
push ecx
mov ecx, esi
call fcn.004055c0
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00405130
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00405130
mov ecx, esi
call fcn.004122d1
lea ecx, [esp + 0x40]
call fcn.0041165f
mov ecx, esi
mov byte [esp + 0x218], bl
call fcn.00412438
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x403d91
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov ecx, dword [esp + 0x18]
test esi, esi
jle 0x403daf
lea eax, [ecx - 1]
jmp 0x403da0
add byte [eax + esi], 0xe2
sub esi, 1
test esi, esi
jg 0x403da0
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x403db7
xor eax, eax
jmp 0x403dd1
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403dc0
sub eax, esi
js 0x404114
cmp eax, dword [ecx - 8]
jg 0x404114
mov edi, dword [esp + 0x1c]
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx], 0
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x403e0b
push esi
lea ecx, [esp + 0x20]
call fcn.00401ce0
mov edi, dword [esp + 0x1c]
test esi, esi
mov bl, 0x2d
jle 0x403e1c
add byte [edi + esi - 1], bl
sub esi, 1
test esi, esi
jg 0x403e11
test edi, edi
jne 0x403e24
xor eax, eax
jmp 0x403e41
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e30
sub eax, edx
js 0x404114
cmp eax, dword [edi - 8]
jg 0x404114
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x403e77
push esi
lea ecx, [esp + 0x18]
call fcn.00401ce0
mov edx, dword [esp + 0x14]
test esi, esi
jle 0x403e8e
lea eax, [edx - 1]
mov edi, edi
add byte [eax + esi], bl
sub esi, 1
test esi, esi
jg 0x403e80
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x403e96
xor eax, eax
jmp 0x403eb1
mov eax, edx
lea esi, [eax + 1]
jmp 0x403ea0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ea0
sub eax, esi
js 0x404114
cmp eax, dword [edx - 8]
jg 0x404114
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x14]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403ede
push 0x80004005
call fcn.00401b10
push eax
push edi
call fcn.00423775
add esp, 8
test eax, eax
setne al
test al, al
je 0x403fe1
lea ecx, [esp + 0x40]
mov byte [esp + 0x218], 5
call fcn.004117ce
mov byte [esp + 0x218], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x218], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x218], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x403b38
push edi
call fcn.004230cd
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call fcn.004230cd
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0xe65d84]
shr ecx, 1
sub ecx, eax
mov dword [edx + 0x1148], ecx
add esp, 8
lea ecx, [esp + 0x40]
mov byte [esp + 0x218], 5
call fcn.004117ce
mov byte [esp + 0x218], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404043
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40406b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x218], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x218], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x218], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40410a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x403ac8
push 0x80070057
call fcn.00401b10
int3