Function at 0x401510
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ab4c
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.0040a7f0
mov eax, dword [0x40f090]
xor eax, esp
mov dword [esp + 0x1080], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f090]
xor eax, esp
push eax
lea eax, [esp + 0x1098]
mov dword fs:[0], eax
push 0x7fe
xor edi, edi
lea ecx, [esp + 0x9a]
xor eax, eax
push edi
push ecx
mov word [esp + 0xa0], ax
call fcn.00404520
push 0x7fe
lea eax, [esp + 0x8a6]
xor edx, edx
push edi
push eax
mov word [esp + 0x8ac], dx
call fcn.00404520
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push edi
push str.SoftwareWandoulabsMiniwdj2
push 0x80000001
mov dword [esp + 0x2c], 0x400
call dword [0x40b010]
mov esi, dword [0x40b014]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push str.Path
push edx
call esi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x898]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.LaunchParam
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x40b00c]
lea eax, [esp + 0x94]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401610
sub eax, edx
sar eax, 1
je 0x4017e0
lea edx, [esp + 0x94]
push edx
call dword [0x40b134]
test eax, eax
je 0x4017e0
xor eax, eax
mov word [esp + 0x7c], ax
mov ebp, 7
lea eax, [esp + 0x94]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401660
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x98]
lea esi, [esp + 0x7c]
call fcn.004024b0
mov dword [esp + 0x10a0], edi
xor ecx, ecx
lea eax, [esp + 0x894]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4016a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x898]
lea esi, [esp + 0x60]
call fcn.004024b0
xor edx, edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], dx
push 1
lea ebx, [esp + 0x7c]
mov byte [esp + 0x10a4], 2
call fcn.00402350
lea edx, [eax + 1]
mov eax, ebx
push eax
lea esi, [esp + 0x24]
call fcn.00402320
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x10a8], 3
call fcn.00402400
mov ebx, 8
mov byte [esp + 0x10a0], 2
cmp dword [esp + 0x38], ebx
jb 0x401725
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040341d
add esp, 4
xor edx, edx
lea eax, [esp + 0x894]
mov word [esp + 0x24], dx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401740
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x898]
lea esi, [esp + 0x24]
call fcn.004024b0
lea eax, [esp + 0x40]
push eax
mov edx, esi
lea ecx, [esp + 0x7c]
call fcn.00401400
add esp, 4
cmp dword [esp + 0x38], ebx
jb 0x401786
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040341d
add esp, 4
cmp dword [esp + 0x58], ebx
jb 0x401799
mov edx, dword [esp + 0x44]
push edx
call fcn.0040341d
add esp, 4
xor eax, eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
cmp dword [esp + 0x74], ebx
jb 0x4017bb
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0040341d
add esp, 4
xor edx, edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp dword [esp + 0x90], ebx
jb 0x4017e0
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040341d
add esp, 4
mov ecx, dword [esp + 0x1098]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1080]
xor ecx, esp
call fcn.0040322e
add esp, 0x1090
ret