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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4b0], edi
mov eax, dword [edi + 0x10c]
mov ebx, dword [edi + 0x108]
mov dword [ebp - 0x4ec], eax
cmp ebx, eax
je 0x51acfa
push ebx
lea ecx, [ebp - 0x4a4]
call fcn.0051ad30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x484]
push eax
push 0x20219
push ecx
push dword [ebp - 0x49c]
mov dword [ebp - 0x484], 0
call fcn.00456ec0
mov edx, dword [ebp - 0x494]
mov ecx, eax
call fcn.00472100
test eax, eax
je 0x51a47b
lea eax, [ebp - 0x484]
push eax
push 0x20119
push ecx
push dword [ebp - 0x49c]
call fcn.00456ec0
mov edx, dword [ebp - 0x494]
mov ecx, eax
call fcn.00472100
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x51a4eb
mov ecx, dword [ebp - 0x498]
mov byte [ebp - 0x4a5], 0
cmp dword [ecx - 0xc], 0
je 0x51a4d0
lea edx, [ebp - 0x228]
mov dword [ebp - 0x224], 0
push edx
push 0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x228], 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 0x484]
jne 0x51a4d7
mov byte [ebp - 0x4a5], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x4a5], 0
jne 0x51acd9
mov esi, dword [edi + 0xb8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x51a517
cmp ecx, dword [esi - 0x10]
jne 0x51a517
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x51a550
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x51ad2a
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052b264
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x51ad20
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x51a58b
push edi
lea ecx, [ebp - 0x21c]
call fcn.00456e30
mov esi, dword [ebp - 0x21c]
lea eax, [edi + 1]
push eax
push esi
call fcn.0052bcbe
add esp, 8
cmp edi, dword [esi - 8]
jg 0x51ad20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
cmp edi, edi
je 0x51a5fc
cmp dword [edi + 0xc], eax
jl 0x51a5e7
mov eax, dword [edi]
cmp eax, eax
jne 0x51a5e7
mov ecx, edi
call fcn.00456280
mov esi, eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51a5dc
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x51a5fc
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
push esi
call fcn.004573c0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.0051c990
cmp eax, dword [ebp - 0x4a4]
je 0x51a678
mov ecx, dword [eax + 0x10]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x51ad16
mov edx, esi
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [ecx]
jne 0x51a656
test di, di
je 0x51a652
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x51a656
add edx, 4
add ecx, 4
test di, di
jne 0x51a630
xor ecx, ecx
jmp 0x51a65b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sets cl
test cl, cl
jne 0x51a678
mov dword [ebp - 0x4f4], eax
lea edi, [ebp - 0x4f4]
mov eax, dword [ebp - 0x4a4]
jmp 0x51a68a
mov eax, dword [ebp - 0x4a4]
lea edi, [ebp - 0x4c8]
mov dword [ebp - 0x4c8], eax
mov edi, dword [edi]
cmp edi, eax
jne 0x51a6cb
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a6ae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a4]
call fcn.00519bb0
mov edi, dword [ebp - 0x4b0]
jmp 0x51aceb
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052ebd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x5a7a64
mov dword [ebp - 0x22c], 0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4b4]
call fcn.00457210
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 4], 4
mov ecx, 0x5a7a70
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x500]
call fcn.00457210
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 5
mov ecx, 0x5a7a64
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00457210
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4e0]
push 0x59266c
call fcn.00457210
mov byte [ebp - 4], 7
mov edx, eax
push dword [ebp - 0x224]
lea ecx, [ebp - 0x504]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 8
mov edx, eax
push dword [ebp - 0x228]
lea ecx, [ebp - 0x4fc]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 9
mov edx, eax
push dword [ebp - 0x4ac]
lea ecx, [ebp - 0x22c]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4fc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a7e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
or ecx, 0xffffffff
mov edx, dword [ebp - 0x504]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a80b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4e0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a82f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4c0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a853
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
or ecx, 0xffffffff
mov edx, dword [ebp - 0x500]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a877
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4b4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a89b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 0x220], 0
call fcn.00457760
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00479e80
add esp, 4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x22c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x220]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0x1a
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4e8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a908
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4d0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a92c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x48c]
call fcn.00460cf0
add esp, 8
test al, al
je 0x51abea
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x480]
push eax
call fcn.00456ec0
mov edx, dword [ebp - 0x220]
mov ecx, eax
call fcn.00471420
cmp eax, 0xffffffff
setne cl
test cl, cl
je 0x51ab79
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, dword [edi + 0x14]
sub ecx, 0x10
mov dword [ebp - 0x224], esp
mov dword [ebp - 0x4ac], esp
call fcn.00456280
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x1f
push ecx
mov ecx, dword [ebp - 0x220]
mov edi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x4ac], esp
mov dword [ebp - 0x228], edi
call fcn.00456280
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1c
call fcn.00457810
add esp, 8
test al, al
jne 0x51ab10
mov ecx, 0x5a8d50
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00457210
mov byte [ebp - 4], 0x22
lea edx, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.0045bbe0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x4f0]
call fcn.004571a0
mov byte [ebp - 4], 0x24
mov edx, eax
push edi
lea ecx, [ebp - 0x4d8]
call fcn.004f96b0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, edi
lea ecx, [ebp - 0x4f8]
call fcn.004f9600
add esp, 4
mov byte [ebp - 4], 0x26
mov edi, dword [ebp - 0x4b0]
mov ecx, edi
push eax
call fcn.00511fe0
mov byte [ebp - 4], 0x25
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4f8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51aa95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x24
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4d8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51aab9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4f0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51aadd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4b8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51ab01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x4bc]
jmp 0x51ac59
push ecx
mov ecx, dword [ebp - 0x490]
mov edi, esp
mov dword [ebp - 0x4ac], esp
mov dword [ebp - 0x224], edi
lea ecx, [ecx - 0x10]
call fcn.00456280
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x2d
mov ecx, 0x5a3970
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4c4]
call fcn.00457210
mov byte [ebp - 4], 0x2e
mov edi, dword [ebp - 0x4b0]
push eax
lea eax, [edi + 0x70]
push eax
lea eax, [edi + 0x6c]
push eax
mov byte [ebp - 4], 0x2f
mov ecx, edi
call fcn.0050d720
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x4c4]
jmp 0x51ac59
mov ecx, 0x5a8d80
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4d4]
call fcn.00457210
mov byte [ebp - 4], 0x31
lea edx, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0x32
mov edi, dword [ebp - 0x4b0]
mov ecx, edi
push eax
call fcn.00511fe0
mov byte [ebp - 4], 0x31
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4cc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51abde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x4d4]
jmp 0x51ac59
mov ecx, 0x5a8db0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00457210
mov byte [ebp - 4], 0x35
lea edx, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0x36
mov edi, dword [ebp - 0x4b0]
mov ecx, edi
push eax
call fcn.00511fe0
mov byte [ebp - 4], 0x35
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4dc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51ac4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x4e4]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51ac73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
or ecx, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51ac97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51acbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51acd9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a4]
call fcn.00519bb0
add ebx, 0x20
cmp ebx, dword [ebp - 0x4ec]
jne 0x51a410
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456ea0
push 0x80070057
call fcn.00456ea0
call fcn.00456de0
int3