Function at 0x407d41
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xdc8
cmp dword [0x41678c], 0x3e9
push ebx
push ebp
push esi
push edi
push 1
mov dword [esp + 0x24], 0x1d
mov dword [esp + 0x28], 0x1e
mov dword [esp + 0x2c], 0x1f
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 0x21
mov dword [esp + 0x38], 0x22
mov dword [esp + 0x3c], 0x23
mov dword [esp + 0x40], 0x24
mov dword [esp + 0x44], 0x25
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], 0x2c
mov dword [esp + 0x50], 0x38
mov dword [esp + 0x54], 0x39
mov dword [esp + 0x58], 0x3a
pop ebx
jne 0x407dda
cmp dword [0x41683c], 0
je 0x407df0
and dword [0x41683c], 0
cmp dword [0x41683c], 0
je 0x407df0
mov ax, word [0x416c54]
mov word [esp + 0x10], ax
jmp 0x407df4
mov dword [esp + 0x10], ebx
push 0xe
lea esi, [esp + 0x24]
lea edi, [esp + 0x25c]
pop ebp
push 0x40
push edi
push dword [esi]
push dword [0x416b50]
call fcn.0040acf0
add esp, 0x10
add edi, 0x40
add esi, 4
dec ebp
jne 0x407e02
mov eax, dword [0x416b40]
mov ecx, dword [0x416790]
add eax, ecx
and dword [0x4167c4], 0
add eax, dword [0x416bbc]
add eax, dword [0x416bc8]
add eax, dword [0x416c5c]
add eax, dword [0x4167ec]
add eax, dword [0x416840]
add eax, dword [0x416c48]
add eax, dword [0x416834]
add eax, dword [0x416b74]
mov dword [0x416bb8], eax
jne 0x407e6f
mov dword [0x416bb8], ebx
cmp dword [0x416b4c], 0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x408119
xor edi, edi
push edi
push 0x3ea
call fcn.004032eb
push edi
push 0x3ec
call fcn.004032eb
mov esi, 0x3ed
push 1
push esi
call fcn.004032eb
push 1
push 0x3ef
call fcn.004032eb
lea eax, [esp + 0x5f8]
push 0x100
push eax
push 0x2d
push dword [0x416b50]
call fcn.0040acf0
push dword [0x416b68]
lea eax, [esp + 0x60c]
push eax
lea eax, [esp + 0xa10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x3c
lea eax, [esp + 0x9d8]
push eax
push esi
push dword [0x416758]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [0x416758]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 5
push dword [0x416758]
call edi
push eax
call esi
xor edi, edi
mov esi, 0x416be0
lea eax, [edi + 0x6b]
movzx eax, ax
push eax
push dword [0x416b50]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi], eax
add esi, 4
inc edi
cmp esi, 0x416c34
jl 0x407f37
xor edi, edi
cmp dword [0x41684c], edi
je 0x407f7c
push 5
push 0xef6
push dword [0x416758]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.00409129
pop ecx
mov dword [0x416b4c], 1
xor ecx, ecx
cmp dword [0x416b60], edi
mov dword [esp + 0x14], ecx
jle 0x40811b
cmp dword [0x4167f0], edi
jne 0x40811b
cmp dword [0x41678c], 0x3e8
je 0x407fcb
mov eax, dword [0x416814]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x204], edi
je 0x408106
mov eax, dword [0x416814]
mov esi, ecx
mov di, word [esp + 0x10]
shl esi, 2
add eax, esi
mov edx, dword [eax]
cmp word [edx + 0x208], di
jb 0x408104
push 0x5c
push edx
call fcn.0040bf9f
pop ecx
test eax, eax
pop ecx
je 0x40800a
mov eax, dword [0x416814]
push 0
push dword [esi + eax]
call fcn.0040a8e7
pop ecx
pop ecx
lea eax, [esp + 0x5d8]
push 0x413648
push eax
call ebp
push 0
call fcn.0040b45f
mov byte [esp + 0x5dc], al
pop ecx
lea eax, [esp + 0x558]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x416814]
mov eax, dword [esi + eax]
cmp byte [eax + 0x104], 0
lea ecx, [eax + 0x104]
je 0x408052
push ecx
jmp 0x408053
push eax
push dword [0x416820]
call ebx
push dword [0x416820]
call fcn.00409129
cmp dword [0x41678c], 0x3e8
pop ecx
mov eax, str.Automatic
je 0x40807d
mov eax, str.Custom
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
mov eax, dword [0x416814]
mov ebp, dword [esi + eax]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, ebp
cmp edi, ebp
jbe 0x4080e0
mov bl, byte [edi]
cmp bl, 0x20
je 0x4080a7
test bl, bl
jne 0x4080c1
and byte [edi], 0
mov eax, dword [0x416814]
push 0
push dword [esi + eax]
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
je 0x4080ce
mov byte [edi], bl
mov eax, dword [0x416814]
dec edi
cmp edi, dword [esi + eax]
ja 0x40809c
jmp 0x4080e0
cmp bl, 0x20
jne 0x4080e0
inc edi
lea eax, [esp + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x416814]
push dword [esi + eax]
call fcn.0040beee
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
xor edi, edi
inc ecx
cmp ecx, dword [0x416b60]
mov dword [esp + 0x14], ecx
jl 0x407f9f
jmp 0x40811b
xor edi, edi
xor esi, esi
cmp dword [0x416b40], edi
jle 0x4081bf
cmp dword [0x4167f0], edi
jne 0x4081bf
cmp dword [0x41678c], 0x3e8
je 0x408151
mov eax, dword [0x416c58]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x104], edi
je 0x4081ac
mov eax, dword [0x416c58]
mov eax, dword [eax + esi*4]
mov ax, word [eax + 0x108]
cmp ax, word [esp + 0x10]
jb 0x4081ac
lea eax, [esp + 0x598]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x416c58]
push dword [eax + esi*4]
push dword [0x416820]
call ebx
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416c58]
push dword [eax + esi*4]
call fcn.0040adbc
push 0xdac
call fcn.0040922f
add esp, 0xc
inc dword [0x4167c4]
inc esi
cmp esi, dword [0x416b40]
jl 0x408129
cmp dword [0x416868], edi
je 0x408212
cmp dword [0x41678c], 0x3e8
je 0x4081db
cmp dword [0x416798], edi
je 0x408212
lea eax, [esp + 0x4d8]
push eax
push dword [0x416820]
call ebp
push dword [0x416868]
push dword [0x416820]
call ebx
push dword [0x416820]
call fcn.00409129
pop ecx
call fcn.0040a1cd
test eax, eax
jne 0x40911e
xor edi, edi
cmp dword [0x416840], edi
jle 0x4082c2
cmp dword [0x4167f0], 0
jne 0x4082c2
cmp dword [0x41678c], 0x3e8
je 0x40824a
mov eax, dword [0x416770]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x104], 0
je 0x4082af
mov eax, dword [0x416770]
mov cx, word [esp + 0x10]
mov esi, edi
shl esi, 2
mov eax, dword [esi + eax]
cmp word [eax + 0x108], cx
jb 0x4082af
lea eax, [esp + 0x358]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x416770]
push dword [esi + eax]
push dword [0x416820]
call ebx
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416770]
push 0
push dword [esi + eax]
call fcn.0040a82e
mov eax, dword [0x416770]
push dword [esi + eax]
call fcn.0040a593
add esp, 0x10
inc dword [0x4167c4]
inc edi
cmp edi, dword [0x416840]
jl 0x408220
xor edi, edi
cmp dword [0x4167ec], edi
jle 0x4083aa
cmp dword [0x4167f0], 0
jne 0x4083aa
cmp dword [0x41678c], 0x3e8
je 0x4082fe
mov eax, dword [0x416874]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x70c], 0
je 0x408397
mov eax, dword [0x416874]
mov cx, word [esp + 0x10]
mov esi, edi
shl esi, 2
mov eax, dword [esi + eax]
cmp word [eax + 0x710], cx
jb 0x408397
add eax, 8
push 0
push eax
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
jne 0x408397
lea eax, [esp + 0x398]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x416874]
mov eax, dword [esi + eax]
add eax, 8
push eax
push dword [0x416820]
call ebx
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416874]
cmp dword [0x41683c], 0
pop ecx
mov eax, dword [esi + eax]
lea ecx, [eax + 0x50c]
jne 0x408377
lea ecx, [eax + 0x30c]
lea edx, [eax + 8]
push edx
mov dl, byte [ecx]
neg dl
sbb edx, edx
and edx, ecx
lea ecx, [eax + 0x20c]
push edx
add eax, 0x10c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [0x4167c4]
inc edi
cmp edi, dword [0x4167ec]
jl 0x4082d0
xor esi, esi
cmp dword [0x416b70], esi
jle 0x408409
cmp dword [0x41683c], 0
je 0x408400
mov eax, dword [0x416768]
mov cx, word [esp + 0x10]
mov eax, dword [eax + esi*4]
cmp word [eax + 0x208], cx
jb 0x408400
add eax, 0x104
push 0
push eax
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
jne 0x408400
mov eax, dword [0x416768]
push 1
mov eax, dword [eax + esi*4]
lea ecx, [eax + 0x104]
push ecx
push eax
call fcn.00409de8
add esp, 0xc
inc esi
cmp esi, dword [0x416b70]
jl 0x4083b4
mov eax, dword [0x416b74]
lea esi, [eax - 1]
test esi, esi
jl 0x40853c
cmp dword [0x41678c], 0x3e8
jne 0x408449
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x268], 0
jne 0x40845e
cmp dword [0x41683c], 0
je 0x408449
lea ecx, [eax + 0x10c]
test ecx, ecx
jne 0x40845e
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x264], 0
je 0x408535
mov cx, word [esp + 0x10]
cmp word [eax + 0x270], cx
jb 0x408535
cmp word [eax + 0x276], cx
jb 0x40848f
push dword [eax + 0x278]
add eax, 8
push 1
push eax
call fcn.00409be3
add esp, 0xc
jmp 0x408491
xor eax, eax
cmp eax, 1
jne 0x4084cc
cmp dword [0x41683c], 0
je 0x4084be
mov eax, dword [0x4167b0]
mov cx, word [esp + 0x10]
mov eax, dword [eax + esi*4]
cmp word [eax + 0x272], cx
jne 0x4084be
cmp byte [eax + 0x10c], 0
jne 0x408535
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
and byte [eax + 8], 0
jmp 0x408535
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
mov cx, word [eax + 0x272]
cmp cx, word [eax + 0x270]
jne 0x4084ed
cmp byte [eax + 0x10c], 0
je 0x4084f6
cmp dword [0x41683c], 0
jne 0x408535
mov di, word [esp + 0x10]
cmp word [eax + 0x26c], di
jb 0x40851a
add eax, 8
push 0
push eax
lea eax, [esp + 0x4a0]
push eax
call fcn.00409fe9
add esp, 0xc
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
cmp word [eax + 0x26e], di
jb 0x408535
add eax, 8
push eax
call fcn.0040ae11
pop ecx
dec esi
jns 0x408419
mov eax, dword [0x416834]
lea edi, [eax - 1]
test edi, edi
jl 0x408666
mov eax, dword [0x416bd0]
mov dx, word [esp + 0x10]
mov esi, edi
shl esi, 2
mov eax, dword [esi + eax]
cmp word [eax + 0x268], dx
jb 0x40865f
mov ecx, dword [eax + 0x25c]
test ecx, ecx
jne 0x40857d
cmp dword [0x4167b8], ecx
je 0x4085e9
cmp word [eax + 0x26e], dx
jb 0x408598
push dword [eax + 0x270]
push ecx
push eax
call fcn.00409be3
add esp, 0xc
jmp 0x40859a
xor eax, eax
push 1
pop ecx
cmp eax, ecx
jne 0x4085d6
cmp dword [0x41683c], 0
je 0x4085c9
mov eax, dword [0x416bd0]
mov eax, dword [esi + eax]
mov cx, word [eax + 0x26a]
cmp cx, word [esp + 0x10]
jne 0x4085c9
cmp byte [eax + 0x104], 0
jne 0x4085e9
mov eax, dword [0x416bd0]
mov eax, dword [esi + eax]
and byte [eax], 0
jmp 0x4085e9
cmp eax, 2
jne 0x4085e9
mov eax, dword [0x416bd0]
mov eax, dword [esi + eax]
mov dword [eax + 0x25c], ecx
mov eax, dword [0x416bd0]
mov eax, dword [esi + eax]
cmp dword [eax + 0x25c], 0
je 0x40865f
cmp byte [eax], 0
je 0x40865f
mov cx, word [eax + 0x26a]
cmp cx, word [eax + 0x268]
jne 0x408618
cmp byte [eax + 0x104], 0
je 0x408621
cmp dword [0x41683c], 0
jne 0x40865f
mov cx, word [esp + 0x10]
cmp word [eax + 0x264], cx
jb 0x408642
push 0
push eax
lea eax, [esp + 0x4a0]
push eax
call fcn.00409fe9
add esp, 0xc
mov eax, dword [0x416bd0]
mov esi, dword [esi + eax]
mov ax, word [esp + 0x10]
cmp word [esi + 0x266], ax
jb 0x40865f
push esi
call fcn.0040ae11
pop ecx
dec edi
jns 0x40854c
xor esi, esi
cmp dword [0x416b74], esi
jle 0x408775
cmp dword [0x4167f0], 0
jne 0x408775
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
cmp byte [eax + 8], 0
lea ecx, [eax + 8]
je 0x408762
cmp dword [0x41678c], 0x3e8
jne 0x4086cb
cmp dword [eax + 0x268], 0
jne 0x4086d8
cmp dword [0x41683c], 0
je 0x4086cb
cmp byte [eax + 0x10c], 0
je 0x4086cb
mov dx, word [eax + 0x272]
cmp dx, word [esp + 0x10]
je 0x4086d8
cmp dword [eax + 0x264], 0
je 0x408762
mov dx, word [esp + 0x10]
cmp word [eax + 0x270], dx
jb 0x408762
cmp word [eax + 0x272], dx
jne 0x4086fd
cmp dword [0x41683c], 0
je 0x4086fd
push 1
pop edx
jmp 0x4086ff
xor edx, edx
add eax, 0x10c
push edx
push eax
push ecx
call fcn.00409de8
add esp, 0xc
test eax, eax
je 0x408762
lea eax, [esp + 0x258]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
add eax, 8
push eax
push dword [0x416820]
call ebx
push dword [0x416820]
push 0x3ef
push dword [0x416758]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
add esp, 0xc
inc dword [0x4167c4]
inc esi
cmp esi, dword [0x416b74]
jl 0x408674
xor esi, esi
cmp dword [0x416834], esi
jle 0x408870
cmp dword [0x4167f0], 0
jne 0x408870
mov eax, dword [0x416bd0]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x40885d
cmp dword [eax + 0x25c], 0
jne 0x4087d6
cmp dword [0x41683c], 0
je 0x40885d
cmp byte [eax + 0x104], 0
je 0x40885d
mov cx, word [esp + 0x10]
cmp word [eax + 0x26a], cx
jne 0x40885d
mov cx, word [esp + 0x10]
cmp word [eax + 0x268], cx
jb 0x40885d
cmp word [eax + 0x26a], cx
jne 0x4087fb
cmp dword [0x41683c], 0
je 0x4087fb
push 1
pop ecx
jmp 0x4087fd
xor ecx, ecx
push ecx
lea ecx, [eax + 0x104]
push ecx
push eax
call fcn.00409de8
add esp, 0xc
test eax, eax
je 0x40885d
lea eax, [esp + 0x298]
push eax
push dword [0x416820]
call ebp
mov eax, dword [0x416bd0]
push dword [eax + esi*4]
push dword [0x416820]
call ebx
push dword [0x416820]
push 0x3ef
push dword [0x416758]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
add esp, 0xc
inc dword [0x4167c4]
inc esi
cmp esi, dword [0x416834]
jl 0x408783
xor esi, esi
cmp dword [0x41683c], esi
je 0x40899e
cmp dword [0x416b74], esi
jle 0x408921
cmp dword [0x4167f0], 0
jne 0x408921
mov eax, dword [0x4167b0]
mov eax, dword [eax + esi*4]
cmp byte [eax + 8], 0
lea ecx, [eax + 8]
je 0x408914
cmp dword [0x41678c], 0x3e8
jne 0x4088cf
cmp dword [eax + 0x268], 0
jne 0x4088d8
cmp dword [0x41683c], 0
je 0x4088cf
cmp byte [eax + 0x10c], 0
jne 0x4088d8
cmp dword [eax + 0x264], 0
je 0x408914
mov dx, word [esp + 0x10]
cmp word [eax + 0x270], dx
jb 0x408914
cmp byte [eax + 0x10c], 0
je 0x408914
cmp word [eax + 0x272], dx
jne 0x408914
cmp word [eax + 0x26c], dx
jb 0x408914
push 1
lea eax, [esp + 0x49c]
push ecx
push eax
call fcn.00409fe9
add esp, 0xc
inc esi
cmp esi, dword [0x416b74]
jl 0x40888a
xor esi, esi
cmp dword [0x416834], esi
jle 0x40899e
xor ecx, ecx
cmp dword [0x4167f0], ecx
jne 0x40899e
mov eax, dword [0x416bd0]
mov eax, dword [eax + esi*4]
cmp byte [eax], cl
je 0x408995
cmp dword [eax + 0x25c], ecx
jne 0x408959
cmp dword [0x41683c], ecx
je 0x408995
cmp byte [eax + 0x104], cl
je 0x408995
mov cx, word [esp + 0x10]
cmp word [eax + 0x268], cx
jb 0x408995
cmp byte [eax + 0x104], 0
je 0x408995
cmp word [eax + 0x26a], cx
jne 0x408995
cmp word [eax + 0x264], cx
jb 0x408995
push 1
push eax
lea eax, [esp + 0x4a0]
push eax
call fcn.00409fe9
add esp, 0xc
inc esi
cmp esi, dword [0x416834]
jl 0x40892b
cmp dword [0x41678c], 0x3e8
mov ebx, dword [esp + 0xddc]
jne 0x4089ca
cmp dword [0x4167f0], 0
jne 0x4089ca
cmp dword [0x41683c], 0
jne 0x4089ca
push ebx
call fcn.0040a593
pop ecx
xor ebp, ebp
cmp dword [0x416c48], ebp
jle 0x408b04
cmp dword [0x4167f0], 0
jne 0x408b04
mov edx, dword [0x41678c]
cmp edx, 0x3e8
je 0x408a08
mov eax, dword [0x4167c8]
mov eax, dword [eax + ebp*4]
cmp dword [eax + 0x104], 0
je 0x408af1
mov eax, dword [0x4167c8]
mov cx, word [esp + 0x10]
mov esi, ebp
shl esi, 2
mov eax, dword [esi + eax]
cmp word [eax + 0x10a], cx
jb 0x408af1
cmp edx, 0x3e9
je 0x408a3f
cmp word [eax + 0x108], cx
lea eax, [esp + 0x318]
jb 0x408a46
lea eax, [esp + 0x2d8]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4167c8]
mov edi, dword [esi + eax]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi - 1], 0x5c
jne 0x408a7e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x4167c8]
mov ecx, dword [esi + ecx]
and byte [eax + ecx - 1], 0
mov eax, dword [0x4167c8]
push dword [esi + eax]
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x416820]
push 0x3ef
push dword [0x416758]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x4167c8]
add esp, 0xc
cmp dword [0x41678c], 0x3e9
je 0x408ae3
mov ecx, dword [esi + eax]
mov dx, word [esp + 0x10]
cmp word [ecx + 0x108], dx
jae 0x408ae3
xor ecx, ecx
jmp 0x408ae6
push 1
pop ecx
push ecx
push dword [esi + eax]
call fcn.004092b2
pop ecx
pop ecx
inc dword [0x4167c4]
inc ebp
cmp ebp, dword [0x416c48]
jl 0x4089d8
xor ebp, ebp
cmp dword [0x41683c], ebp
je 0x408b45
cmp dword [0x416860], ebp
jne 0x408b1f
push ebx
call fcn.0040a593
pop ecx
jmp 0x408b45
push 1
push ebx
call fcn.0040c7e8
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
je 0x408b45
push dword [0x416860]
push esi
call fcn.0040c6a2
push esi
call fcn.0040c5ef
add esp, 0xc
cmp dword [0x416bbc], ebp
jle 0x408c52
cmp dword [0x4167f0], 0
jne 0x408c52
cmp dword [0x41678c], 0x3e8
je 0x408b7f
mov eax, dword [0x416b44]
mov eax, dword [eax + ebp*4]
cmp dword [eax + 0x121c], 0
je 0x408c3f
mov eax, dword [0x416b44]
mov cx, word [esp + 0x10]
mov edi, ebp
shl edi, 2
mov eax, dword [edi + eax]
cmp word [eax + 0x1220], cx
jb 0x408c3f
lea eax, [esp + 0x418]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x416820]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov ecx, dword [0x416b44]
mov esi, eax
mov eax, dword [0x416820]
mov ecx, dword [edi + ecx]
add esi, eax
add ecx, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebx
cmp eax, 0x30
jle 0x408bf4
add esi, 0x2d
push 0x413630
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416b44]
cmp dword [0x41683c], 0
pop ecx
mov eax, dword [edi + eax]
lea ecx, [eax + 0xa14]
jne 0x408c1d
lea ecx, [eax + 0x214]
push 0
push ecx
lea ecx, [eax + 0x108]
push ecx
lea ecx, [eax + 8]
push ecx
push dword [eax + 0x1218]
push dword [eax + 0x1214]
call fcn.00407ba2
add esp, 0x18
inc dword [0x4167c4]
inc ebp
cmp ebp, dword [0x416bbc]
jl 0x408b51
mov eax, dword [0x416c5c]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x408e87
jmp 0x408c6a
mov eax, dword [esp + 0x14]
cmp dword [0x4167f0], 0
jne 0x408e87
cmp dword [0x41678c], 0x3e8
je 0x408c9d
mov ecx, dword [0x416794]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x21c], 0
je 0x408e77
mov eax, dword [esp + 0x14]
mov esi, eax
mov eax, dword [0x416794]
shl esi, 2
mov eax, dword [esi + eax]
mov ax, word [eax + 0x220]
cmp ax, word [esp + 0x10]
jb 0x408e77
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x3d8]
push eax
push dword [0x416820]
call ebp
push dword [0x416820]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov ecx, dword [0x416794]
mov edi, eax
mov eax, dword [0x416820]
mov ecx, dword [esi + ecx]
add edi, eax
add ecx, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call ebx
cmp eax, 0x30
jle 0x408d10
add edi, 0x2d
push 0x413630
push edi
call ebp
push dword [0x416820]
call fcn.00409129
cmp dword [0x416778], 0
pop ecx
je 0x408e4e
push 1
pop ebx
mov eax, dword [0x416794]
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
mov eax, dword [esi + eax]
push 0x1f
push edi
lea ecx, [eax + 8]
mov eax, dword [eax + 0x218]
push ecx
push dword [eax*4 + 0x413030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408e34
cmp ebx, edi
je 0x408d79
mov eax, dword [0x416794]
mov eax, dword [esi + eax]
add eax, 0x10c
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x6c]
xor ebx, ebx
push eax
push edi
push dword [esp + 0x34]
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, eax
cmp ebp, edi
je 0x408dfa
push edi
push edi
push edi
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], 0x100
push eax
push edi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [esp + 0x18]
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, edi
je 0x408e77
mov eax, dword [0x416794]
mov eax, dword [esi + eax]
lea ecx, [eax + 8]
mov eax, dword [eax + 0x218]
push ecx
push dword [eax*4 + 0x413030]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor edi, edi
jmp 0x408e04
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, edi
je 0x408e77
mov eax, dword [0x416794]
mov edi, dword [esi + eax]
mov eax, edi
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 7]
lea ecx, [edi + 8]
cmp eax, ecx
jbe 0x408e2f
cmp byte [eax], 0x5c
je 0x408e2f
dec eax
jmp 0x408e23
and byte [eax], 0
jmp 0x408e36
xor ebp, ebp
test ebp, ebp
je 0x408e77
mov eax, dword [0x416794]
mov eax, dword [esi + eax]
cmp byte [eax + 8], 0
jne 0x408d2c
jmp 0x408e77
mov eax, dword [0x416794]
mov esi, dword [esi + eax]
cmp byte [esi + 0x10c], 0
jne 0x408e77
cmp dword [esi + 0x218], 0
jne 0x408e77
add esi, 8
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
inc dword [0x4167c4]
dec dword [esp + 0x14]
jns 0x408c66
mov eax, dword [0x416bc8]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
lea edi, [eax - 1]
cmp edi, ecx
jl 0x408f60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4167f0], ecx
jne 0x40911e
cmp dword [0x41678c], 0x3e8
je 0x408ed1
mov eax, dword [0x416888]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x104], ecx
je 0x408f53
mov eax, dword [0x416888]
mov dx, word [esp + 0x10]
mov eax, dword [eax + edi*4]
cmp word [eax + 0x108], dx
jb 0x408f53
lea eax, [esp + 0x518]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x416820]
call ebx
mov ecx, dword [0x416888]
mov esi, eax
mov eax, dword [0x416820]
push dword [ecx + edi*4]
add esi, eax
push eax
call ebp
push esi
call ebx
cmp eax, 0x30
jle 0x408f2f
add esi, 0x2d
push 0x413630
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416888]
mov eax, dword [eax + edi*4]
push dword [eax + 0x100]
push eax
call fcn.0040a3d4
add esp, 0xc
xor ecx, ecx
inc dword [0x4167c4]
dec edi
jns 0x408ea5
cmp dword [0x4167f0], ecx
jne 0x40911e
push 1
xor esi, esi
cmp dword [0x416790], ecx
pop edi
jle 0x409048
cmp dword [0x4167f0], ecx
jne 0x409020
cmp dword [0x41678c], 0x3e8
je 0x408fa5
mov eax, dword [0x416800]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x300], ecx
je 0x40900d
mov eax, dword [0x416800]
mov dx, word [esp + 0x10]
mov eax, dword [eax + esi*4]
cmp word [eax + 0x304], dx
je 0x408fc3
cmp dword [0x41683c], ecx
jne 0x40900d
cmp edi, ecx
je 0x408fce
call fcn.00409553
xor edi, edi
lea eax, [esp + 0x458]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x416800]
mov eax, dword [eax + esi*4]
add eax, 0x100
push eax
push dword [0x416820]
call ebp
push dword [0x416820]
call fcn.00409129
push esi
call fcn.00409720
pop ecx
pop ecx
xor ecx, ecx
inc dword [0x4167c4]
inc esi
cmp esi, dword [0x416790]
jl 0x408f7d
cmp edi, ecx
jne 0x409048
mov eax, dword [0x4167f4]
cmp eax, ecx
je 0x409033
push eax
call sub.USER32.dll_DdeDisconnect
push 0
call fcn.00409129
pop ecx
push dword [0x416784]
call sub.USER32.dll_DdeUninitialize
xor ecx, ecx
cmp dword [0x416850], ecx
je 0x40911e
cmp dword [0x41678c], 0x3e8
jne 0x409068
cmp dword [0x41683c], ecx
je 0x409080
cmp dword [0x41683c], ecx
je 0x40911e
cmp dword [0x416860], ecx
jne 0x40911e
cmp dword [0x416778], ecx
je 0x40911e
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0x1f
push esi
push str.SoftwareWise_SolutionsWamUser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40911e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push str.Path
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409114
lea eax, [esp + 0x58]
push esi
push eax
call fcn.0040a8e7
pop ecx
lea eax, [esp + 0x5c]
pop ecx
push str.__U__
push eax
call ebp
push dword [0x416850]
lea eax, [esp + 0x5c]
push eax
call ebp
lea eax, [esp + 0x58]
push 0x4135fc
push eax
call ebp
lea eax, [esp + 0x58]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc8
ret