Function at 0x4034e0
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c09
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x422070]
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 esi, ecx
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x27c], 0x80000001
mov dword [ebp - 0x278], 0x80000002
mov dword [ebp - 0x274], 0x20019
mov dword [ebp - 0x270], 0x20219
mov dword [esi + 0x10], 0
jb 0x403574
mov eax, dword [esi]
jmp 0x403576
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x26c], 1
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 1
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax]
push 0
push 0x41f3e0
mov ecx, esi
call fcn.00401720
lea eax, [ebp - 0x264]
push eax
push dword [ebp + edi - 0x274]
push 0
push str.SoftwareImage_LineSharedPaths
push dword [ebp + edi - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403622
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x284]
push eax
push 0
push str.Shared_DLLs
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40362f
push dword [ebp - 0x264]
call ebx
add edi, 4
cmp edi, 8
jl 0x4035b0
jmp 0x4036cf
cmp word [ebp - 0x218], 0
jne 0x40363d
xor ecx, ecx
jmp 0x403655
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403646
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401720
mov edx, esi
lea ecx, [ebp - 0x248]
call fcn.00401270
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x403689
push 0xffffffffffffffff
push 0
push eax
call fcn.00401820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4036ab
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00401c70
cmp dword [ebp - 0x220], 0
je 0x4036cf
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x10], 0
je 0x40385e
push 0x41f3d4
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.004041c0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00404130
add esp, 4
mov edi, eax
cmp esi, edi
je 0x403781
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x403718
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401c70
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403730
mov eax, dword [esi]
jmp 0x403732
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x14], 8
jae 0x403754
mov eax, dword [edi + 0x10]
add eax, 1
je 0x40375a
add eax, eax
push eax
push edi
push esi
call fcn.00405a70
add esp, 0xc
jmp 0x40375a
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], ecx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x40377c
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4037e3
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x40379f
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x4037da
test byte [ebp - 0x248], 0x1f
je 0x4037b6
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4037c2
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x4037ce
call fcn.00409661
cmp ecx, 0x23
jbe 0x4037d8
call fcn.00409661
mov ecx, eax
push ecx
call fcn.00404d86
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x40385e
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x40381e
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x403855
test cl, 0x1f
je 0x403831
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40383d
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x403849
call fcn.00409661
cmp ecx, 0x23
jbe 0x403853
call fcn.00409661
mov ecx, eax
push ecx
call fcn.00404d86
add esp, 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4038c0
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x40387c
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x4038b7
test byte [ebp - 0x230], 0x1f
je 0x403893
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40389f
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x4038ab
call fcn.00409661
cmp ecx, 0x23
jbe 0x4038b5
call fcn.00409661
mov ecx, eax
push ecx
call fcn.00404d86
add esp, 4
mov eax, esi
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.00404b43
mov esp, ebp
pop ebp
ret