Function at 0x401df0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ac1c
mov eax, dword fs:[0]
push eax
sub esp, 0xa70
mov eax, dword [0x40f090]
xor eax, esp
mov dword [esp + 0xa6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f090]
xor eax, esp
push eax
lea eax, [esp + 0xa84]
mov dword fs:[0], eax
push 0x7fe
xor edi, edi
lea ecx, [esp + 0x286]
xor eax, eax
push edi
push ecx
mov word [esp + 0x28c], ax
call fcn.00404520
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push edi
push str.SoftwareWandoulabsMiniwdj2
push 0x80000001
mov dword [esp + 0x2c], 0x400
call dword [0x40b010]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.Uninst
push eax
call dword [0x40b014]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x40b00c]
lea eax, [esp + 0x280]
lea edx, [eax + 2]
jmp 0x401eb0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401eb0
sub eax, edx
sar eax, 1
mov ebp, 7
je 0x402010
lea edx, [esp + 0x280]
push edx
call dword [0x40b134]
test eax, eax
je 0x402010
xor eax, eax
mov word [esp + 0x60], ax
lea eax, [esp + 0x280]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401f00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x284]
lea esi, [esp + 0x60]
call fcn.004024b0
mov dword [esp + 0xa8c], edi
xor ecx, ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], cx
push 1
mov ebx, esi
mov byte [esp + 0xa90], 1
call fcn.00402350
lea edx, [eax + 1]
mov eax, esi
push eax
lea esi, [esp + 0x28]
call fcn.00402320
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0xa94], 2
call fcn.00402400
mov ebx, 8
mov byte [esp + 0xa8c], 1
cmp dword [esp + 0x3c], ebx
jb 0x401f8a
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040341d
add esp, 4
xor edx, edx
push edi
mov eax, 0x40cbbc
lea esi, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.004024b0
lea eax, [esp + 0x40]
push eax
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.00401400
add esp, 4
cmp dword [esp + 0x3c], ebx
jb 0x401fce
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040341d
add esp, 4
cmp dword [esp + 0x58], ebx
jb 0x401fe1
mov edx, dword [esp + 0x44]
push edx
call fcn.0040341d
add esp, 4
xor eax, eax
mov dword [esp + 0xa8c], 0xffffffff
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
cmp dword [esp + 0x74], ebx
jb 0x402015
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0040341d
add esp, 4
jmp 0x402015
mov ebx, 8
push 0x206
lea eax, [esp + 0x7e]
xor edx, edx
push edi
push eax
mov word [esp + 0x84], dx
call fcn.00404520
add esp, 0xc
push edi
push 0x1c
lea ecx, [esp + 0x80]
push ecx
push edi
call dword [0x40b128]
push str.miniwdj2_
lea edx, [esp + 0x7c]
push 0x104
push edx
call fcn.004034a5
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call dword [0x40b134]
test eax, eax
je 0x4020e2
xor ecx, ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402080
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x7c]
lea esi, [esp + 0x28]
call fcn.004024b0
mov edx, esi
push 1
push edx
mov dword [esp + 0xa94], 3
call fcn.00401060
add esp, 8
mov dword [esp + 0xa8c], 0xffffffff
cmp dword [esp + 0x3c], ebx
jb 0x4020d3
mov eax, dword [esp + 0x28]
push eax
call fcn.0040341d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
push edi
push 0x40cbbc
push str._c_assoc_.apk__
push 0x40cbe4
push edi
push edi
call dword [0x40b12c]
call fcn.00401990
mov ecx, dword [esp + 0xa84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa6c]
xor ecx, esp
call fcn.0040322e
add esp, 0xa7c
ret