Function at 0x416d97
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 0x416dd8
mov dword [ebp - 0x834], esi
jmp 0x416de4
push edi
call fcn.00405b45
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 0x417077
cmp word [edi], 0x2a
jne 0x417077
lea eax, [edi + 2]
cmp word [eax], 0x2e
mov dword [ebp - 0x854], eax
jne 0x417077
lea eax, [edi + 4]
cmp word [eax], si
je 0x417077
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x417077
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 0x417071
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 0x417059
cmp dword [ebp - 0x840], 1
jne 0x417059
shr dword [ebp - 0x830], 1
mov eax, 0x103
cmp dword [ebp - 0x830], eax
jb 0x416ecd
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 0x417059
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 0x41704d
xor edi, edi
inc edi
cmp dword [ebp - 0x840], edi
jne 0x41704d
shr dword [ebp - 0x830], 1
mov eax, 0x103
cmp dword [ebp - 0x830], eax
jb 0x416f5c
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.00416cc1
test eax, eax
jl 0x417002
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.00416cc1
test eax, eax
jl 0x417002
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.00416cc1
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.00416cc1
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 0x417186
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.00416cc1
cmp dword [ebp - 0x834], esi
je 0x4170ef
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.00416cc1
test eax, eax
jl 0x4170ef
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.00416cc1
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.00416cc1
cmp dword [ebp - 0x834], esi
je 0x417186
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.00416cc1
test eax, eax
jl 0x417186
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.00416cc1
mov eax, dword [ebp - 0x844]
mov eax, dword [eax + 0x14]
cmp eax, esi
je 0x417207
push eax
call fcn.0041a3b2
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x417207
push 0x4032c8
lea eax, [edi + eax*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417207
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.00416cc1
test eax, eax
jl 0x417209
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.00416cc1
jmp 0x417209
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.0040c97f
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.00415697
cmp dword [ebp - 0x83c], esi
je 0x4172ab
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0041a86e
test eax, eax
jne 0x4172ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4172ab
xor eax, eax
jmp 0x4172ae
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.00418f7f
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], 0x415777
mov dword [ebp - 0x870], esi
call fcn.0040d121
cmp dword [ebp - 0x888], esi
mov dword [ebp - 0x83c], eax
je 0x41738e
push dword [ebp - 0x888]
call fcn.0041a0e7
cmp dword [ebp - 0x834], esi
je 0x4173a1
push dword [ebp - 0x834]
call fcn.0041a0e7
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp - 0x83c], esi
je 0x4173ed
cmp word [ebp - 0x880], bx
jae 0x4173ca
movzx eax, word [ebp - 0x880]
mov word [ebp + eax*2 - 0x826], si
jmp 0x4173d1
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 0x4173ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419805
leave
ret 8