Function at 0x417fa0
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Get installed programs
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x6bc95c
lea ecx, [ebx + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], edi
call fcn.0040cc40
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x34], eax
cmp ecx, edi
je 0x417fe9
push 1
jmp 0x417fea
push edi
push eax
mov ecx, ebx
call fcn.004161c0
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
mov dword [ebp - 0x38], edi
call fcn.004105f0
cmp eax, edi
jne 0x418237
xor esi, esi
call fcn.00445c70
cmp eax, edi
je 0x418023
mov ecx, ebx
call fcn.00410c00
cmp eax, edi
je 0x418023
mov esi, 1
mov ecx, ebx
call fcn.00410f80
cmp eax, edi
jne 0x418036
cmp esi, edi
je 0x418237
cmp dword [ebp - 0x38], edi
je 0x418075
push 0x6be0bc
call fcn.00419640
add esp, 4
cmp eax, edi
je 0x418237
mov ecx, dword [0x6ed13c]
mov edx, dword [0x6ece1c]
push 0x50040
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x418237
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x20019
push esi
push 0x6be078
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4180f7
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x1cc]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x18]
push 0x6be06c
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4180ed
lea ecx, [ebp - 0x1cc]
push 0x2c
push ecx
call fcn.005de150
add esp, 8
test eax, eax
je 0x4180ed
lea edx, [ebp - 0x1cc]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4180ed
mov esi, 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00445c70
test eax, eax
je 0x41817d
lea ecx, [ebp - 0x18]
push ecx
push 0x20119
push 0
push 0x6be078
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x41817d
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1cc]
push edx
push eax
push 0
push 0
push 0x6be06c
push ecx
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418173
lea edx, [ebp - 0x1cc]
push 0x2c
push edx
call fcn.005de150
add esp, 8
test eax, eax
je 0x418173
mov byte [eax], 0
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418173
mov esi, 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x418196
push 0x6be0bc
call fcn.00419640
add esp, 4
test eax, eax
je 0x418237
mov eax, dword [0x6ec78c]
test eax, eax
jne 0x418237
mov edx, dword [ebx + 0x48]
push 0
mov al, byte [edx + 0x3a]
test al, al
je 0x4181c3
push 0
push 0
push 0
push 0
push 0x417de0
call fcn.005fae57
jmp 0x418237
lea ecx, [ebp - 0x21c]
call fcn.00495a40
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.005f6856
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 6
call fcn.005023b0
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 5
call fcn.00602365
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 4
call fcn.00602365
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
call fcn.00602365
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 2
call fcn.0060239d
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.005f6497
mov edx, dword [0x6ec7a0]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 0
push 0
push 0x6be060
push edx
mov edi, 1
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418274
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x6ec5a4]
cmp eax, ecx
jb 0x418274
xor edi, edi
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
push eax
push ecx
call fcn.0040ead0
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
mov dword [ebp - 0x14], 0
jne 0x41833f
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x44], si
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x48]
mov bl, 7
push edx
push eax
mov byte [ebp - 4], bl
call fcn.0041a150
cmp eax, esi
je 0x41832e
cmp dword [ebp - 0x28], 2
jne 0x41832e
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 8
cmp eax, esi
jne 0x4182e3
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x18]
push 1
push edx
push eax
call fcn.0040e4f0
add esp, 0xc
cmp eax, esi
je 0x418323
mov eax, dword [ebp - 0x18]
push 0x2e
push eax
call fcn.005de150
add esp, 8
cmp eax, esi
je 0x418323
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005de3d3
add esp, 4
cmp eax, 0x34
jle 0x418323
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.005fa859
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401070
cmp dword [ebp - 0x20], esi
je 0x4183af
mov ecx, dword [0x6ec7a0]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push 0
push 0x6be050
push ecx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4183af
mov eax, dword [0x6ec7a0]
lea edx, [ebp - 0x24]
push 4
push edx
push 4
push 0
push 0x6be050
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4183a8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push edx
call fcn.00414bc0
test eax, eax
jne 0x4183af
mov dword [ebp - 0x14], 1
push 0
call fcn.0040f100
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 4
xor esi, esi
test eax, eax
je 0x4183d1
mov ecx, dword [ebp - 0x1c]
push esi
push 0x35
call fcn.0041cf50
mov esi, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4183ed
mov ecx, dword [ebp - 0x1c]
push 0
push 0x1b
call fcn.0041cf50
test eax, eax
je 0x4183ed
mov esi, 1
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4183ff
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4183ff
push 1
jmp 0x418401
push 0
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.0041d580
test edi, edi
je 0x418432
mov edx, dword [0x6ec7a0]
mov eax, dword [0x6ec5a4]
lea ecx, [ebp - 0x24]
push 4
push ecx
push 4
push 0
push 0x6be060
push edx
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
call fcn.0040f100
add esp, 4
test eax, eax
je 0x418495
test ebx, ebx
jne 0x41848e
test esi, esi
je 0x41848e
mov eax, dword [0x6ec78c]
test eax, eax
jne 0x41848e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
mov al, byte [ecx + 0x3a]
test al, al
je 0x41846f
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x417f40
call fcn.005fae57
jmp 0x41848e
mov edx, dword [0x6ed13c]
mov eax, dword [0x6ed108]
push 0x50040
push edx
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4184ab
push 0
push 0
push 0
push 0
push 0
push 0x410090
call fcn.005fae57
jmp 0x4184fd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4184fd
mov eax, dword [0x6ec78c]
test eax, eax
jne 0x4184fd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov al, byte [edx + 0x3a]
test al, al
je 0x4184de
push 0
push 0
push 0
push 0
push 0
push 0x417f70
call fcn.005fae57
jmp 0x4184fd
mov eax, dword [0x6ed13c]
mov ecx, dword [0x6ecd2c]
push 0x50040
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x41858c
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x41858c
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push 0x6bd14c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41858c
lea eax, [ebp - 0xc8]
push 0x6bcdc4
push eax
call fcn.005de2e9
lea ecx, [ebp - 0xc8]
push ecx
call fcn.005de123
add esp, 0xc
xor ecx, ecx
cmp ecx, eax
jge 0x418571
mov dx, word [ebp + ecx*2 - 0xc8]
xor dx, 0x4d
sub edx, 0xff
mov word [ebp + ecx*2 - 0xc8], dx
inc ecx
jmp 0x418550
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41861b
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x41861b
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x6bd14c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41861b
lea ecx, [ebp - 0xc8]
push 0x6bce14
push ecx
call fcn.005de2e9
lea edx, [ebp - 0xc8]
push edx
call fcn.005de123
add esp, 0xc
xor ecx, ecx
cmp ecx, eax
jge 0x418600
mov dx, word [ebp + ecx*2 - 0xc8]
xor dx, 0x4d
sub edx, 0xff
mov word [ebp + ecx*2 - 0xc8], dx
inc ecx
jmp 0x4185df
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret