Function at 0x4030e0
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 0x403174
mov eax, dword [esi]
jmp 0x403176
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 0x403222
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.FL_Studio_engine
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40322f
push dword [ebp - 0x264]
call ebx
add edi, 4
cmp edi, 8
jl 0x4031b0
jmp 0x4032cf
cmp word [ebp - 0x218], 0
jne 0x40323d
xor ecx, ecx
jmp 0x403255
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403246
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 0x403289
push 0xffffffffffffffff
push 0
push eax
call fcn.00401820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4032ab
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00401c70
cmp dword [ebp - 0x220], 0
je 0x4032cf
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 0x40345e
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.00401270
push 0x423988
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00404050
add esp, 4
mov edi, eax
cmp esi, edi
je 0x403381
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x403318
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 0x403330
mov eax, dword [esi]
jmp 0x403332
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x14], 8
jae 0x403354
mov eax, dword [edi + 0x10]
add eax, 1
je 0x40335a
add eax, eax
push eax
push edi
push esi
call fcn.00405a70
add esp, 0xc
jmp 0x40335a
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 0x40337c
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4033e3
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x40339f
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x4033da
test byte [ebp - 0x248], 0x1f
je 0x4033b6
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4033c2
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x4033ce
call fcn.00409661
cmp ecx, 0x23
jbe 0x4033d8
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 0x40345e
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x40341e
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x403455
test cl, 0x1f
je 0x403431
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40343d
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x403449
call fcn.00409661
cmp ecx, 0x23
jbe 0x403453
call fcn.00409661
mov ecx, eax
push ecx
call fcn.00404d86
add esp, 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4034c0
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x40347c
call fcn.00409661
add eax, eax
cmp eax, 0x1000
jb 0x4034b7
test byte [ebp - 0x230], 0x1f
je 0x403493
call fcn.00409661
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40349f
call fcn.00409661
sub ecx, eax
cmp ecx, 4
jae 0x4034ab
call fcn.00409661
cmp ecx, 0x23
jbe 0x4034b5
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