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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8b8
mov eax, dword [0x4233cc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0x20]
xor esi, esi
test byte [eax + 0x28], 8
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x838], edi
je 0x416e08
mov dword [ebp - 0x834], esi
jmp 0x416e14
push edi
call fcn.00405b75
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], esi
lea eax, [ebp - 0x61c]
mov ebx, 0x104
mov dword [ebp - 0x84c], esi
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x82c], ebx
jne 0x4170a7
cmp word [edi], 0x2a
jne 0x4170a7
lea eax, [edi + 2]
cmp word [eax], 0x2e
mov dword [ebp - 0x854], eax
jne 0x4170a7
lea eax, [edi + 4]
cmp word [eax], si
je 0x4170a7
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x4170a7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x848]
push eax
push 1
push esi
push dword [ebp - 0x854]
push 0x80000000
call edi
test eax, eax
jne 0x4170a1
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x840]
push eax
push esi
push 0x401460
push dword [ebp - 0x848]
mov dword [ebp - 0x830], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417089
cmp dword [ebp - 0x840], 1
jne 0x417089
shr dword [ebp - 0x830], 1
mov eax, 0x103
cmp dword [ebp - 0x830], eax
jb 0x416efd
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x830]
mov word [ebp + eax*2 - 0x61c], si
lea eax, [ebp - 0x850]
push eax
push 1
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x80000000
call edi
test eax, eax
jne 0x417089
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x840]
push eax
push esi
push 0x401460
push dword [ebp - 0x850]
mov dword [ebp - 0x830], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41707d
xor edi, edi
inc edi
cmp dword [ebp - 0x840], edi
jne 0x41707d
shr dword [ebp - 0x830], 1
mov eax, 0x103
cmp dword [ebp - 0x830], eax
jb 0x416f8c
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x830]
mov word [ebp + eax*2 - 0x61c], si
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp + eax*2 - 0x61c]
push esi
mov dword [ebp - 0x830], eax
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x4032dc
push ecx
push edx
mov dword [ebp - 0x828], edx
mov dword [ebp - 0x82c], ecx
call fcn.00416cf1
test eax, eax
jl 0x417032
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x838]
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
test eax, eax
jl 0x417032
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x4032d8
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
add dword [ebp - 0x828], 2
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x61c]
sub ecx, eax
sar ecx, 1
push esi
mov eax, 0x207
sub eax, ecx
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x828]
push ecx
push dword [ebp - 0x838]
mov dword [ebp - 0x82c], eax
push eax
push dword [ebp - 0x828]
call fcn.00416cf1
mov dword [ebp - 0x84c], edi
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x848]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x84c], esi
jne 0x4171b6
mov edi, dword [ebp - 0x838]
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
cmp dword [ebp - 0x834], esi
je 0x41711f
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x4032d4
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
test eax, eax
jl 0x41711f
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x834]
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
add dword [ebp - 0x828], 2
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x61c]
sub ecx, eax
sar ecx, 1
push esi
mov eax, 0x207
sub eax, ecx
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x828]
push ecx
push edi
push eax
push dword [ebp - 0x828]
mov dword [ebp - 0x82c], eax
call fcn.00416cf1
cmp dword [ebp - 0x834], esi
je 0x4171b6
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x4032d4
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
test eax, eax
jl 0x4171b6
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x834]
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
mov eax, dword [ebp - 0x844]
mov eax, dword [eax + 0x14]
cmp eax, esi
je 0x417237
push eax
call fcn.0041a663
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x417237
push 0x4032c8
lea eax, [edi + eax*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417237
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x4032d4
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
test eax, eax
jl 0x417239
push esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x828]
call fcn.00416cf1
jmp 0x417239
xor edi, edi
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x834]
inc eax
inc eax
mov word [eax], si
mov eax, dword [ebp - 0x838]
push eax
mov dword [ebp - 0x860], eax
push ebx
lea eax, [ebp - 0x824]
push eax
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0x858], edi
call fcn.0040c9af
mov edi, dword [ebp - 0x83c]
push ebx
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x844]
push dword [eax + 0x44]
mov word [ebp - 0x20c], si
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 6], si
call fcn.004156c7
cmp dword [ebp - 0x83c], esi
je 0x4172db
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ab1f
test eax, eax
jne 0x4172db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4172db
xor eax, eax
jmp 0x4172de
xor eax, eax
inc eax
mov ecx, dword [0x4235e8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff4
add ecx, 0x58
mov dword [ebp - 0x8b8], ecx
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0x8ac], ecx
lea ecx, [ebp - 0x824]
neg eax
mov dword [ebp - 0x89c], ecx
sbb eax, eax
lea ecx, [ebp - 0x20c]
and eax, ecx
push 3
mov dword [ebp - 0x8b4], edi
mov dword [ebp - 0x8b0], esi
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x8a4], esi
mov dword [ebp - 0x8a0], 1
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x894], esi
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x88c], eax
call fcn.00418faf
mov dword [ebp - 0x888], eax
lea eax, [ebp - 0x860]
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x8b8]
push eax
mov dword [ebp - 0x884], 0x1088182c
mov word [ebp - 0x880], si
mov word [ebp - 0x87e], si
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x874], 0x4157a7
mov dword [ebp - 0x870], esi
call fcn.0040d151
cmp dword [ebp - 0x888], esi
mov dword [ebp - 0x83c], eax
je 0x4173be
push dword [ebp - 0x888]
call fcn.0041a398
cmp dword [ebp - 0x834], esi
je 0x4173d1
push dword [ebp - 0x834]
call fcn.0041a398
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp - 0x83c], esi
je 0x41741d
cmp word [ebp - 0x880], bx
jae 0x4173fa
movzx eax, word [ebp - 0x880]
mov word [ebp + eax*2 - 0x826], si
jmp 0x417401
mov word [ebp - 0x61e], si
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0x844]
push dword [eax + 0x44]
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor eax, eax
inc eax
jmp 0x41741f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419835
leave
ret 8