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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e40b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x57c8b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 8]
mov eax, 1
cmp dword [edx - 0xc], 0
jne 0x41718b
mov ecx, eax
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x417123
push 0x104
lea ecx, [edi + 8]
call fcn.0040a220
mov edx, dword [edi + 8]
cmp dword [edx - 8], 0x104
jl 0x41764b
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 8]
push 0x104
push edx
push edi
mov word [eax + 0x208], cx
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, dword [edi + 8]
test eax, eax
jne 0x41715a
xor ecx, ecx
jmp 0x417170
push dword [eax - 8]
push eax
call fcn.004c5c1b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41764b
mov eax, dword [edi + 8]
cmp ecx, dword [eax - 8]
jg 0x41764b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 8]
mov word [eax + ecx*2], dx
lea eax, [edx + 1]
mov edx, dword [edi + 0x18]
cmp dword [edx - 0xc], 0
jne 0x41721d
mov ecx, eax
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4171b9
push 0x104
lea ecx, [edi + 0x18]
call fcn.0040a220
mov edx, dword [edi + 0x18]
cmp dword [edx - 8], 0x104
jl 0x417655
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 0x18]
push 0x104
push edx
mov word [eax + 0x208], cx
call fcn.00494430
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x4171ef
xor ecx, ecx
jmp 0x417205
push dword [eax - 8]
push eax
call fcn.004c5c1b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41764b
mov eax, dword [edi + 0x18]
cmp ecx, dword [eax - 8]
jg 0x41764b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x18]
mov word [eax + ecx*2], dx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jne 0x417460
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a99f0
lea ecx, [ebp - 0x218]
add esp, 0xc
lea ebx, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub ebx, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4172ae
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4172ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417290
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x831]
call fcn.00415a10
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x838]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4172fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41735d
mov edx, dword [edi + 4]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x417332
push 0x104
lea ecx, [edi + 4]
call fcn.0040a220
mov edx, dword [edi + 4]
cmp dword [edx - 8], 0x104
jl 0x41765f
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
mov word [eax + 0x208], cx
lea ecx, [ebp - 0x218]
jmp 0x41741a
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a99f0
lea ecx, [ebp - 0x628]
add esp, 0xc
lea ebx, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub ebx, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4173ae
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4173ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417390
lea eax, [ecx - 2]
test edx, edx
push str.birdwp.exe
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [edi + 4]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4173f4
push 0x104
lea ecx, [edi + 4]
call fcn.0040a220
mov edx, dword [edi + 4]
cmp dword [edx - 8], 0x104
jl 0x417669
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
mov word [eax + 0x208], cx
lea ecx, [ebp - 0x628]
mov eax, dword [edi]
push 0x104
push edx
push ecx
push edi
call dword [eax + 4]
mov eax, dword [edi + 4]
test eax, eax
jne 0x417432
xor ecx, ecx
jmp 0x417448
push dword [eax - 8]
push eax
call fcn.004c5c1b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41764b
mov eax, dword [edi + 4]
cmp ecx, dword [eax - 8]
jg 0x41764b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 4]
mov word [eax + ecx*2], dx
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jne 0x41756d
lea eax, [ebp - 0x844]
mov dword [ebp - 0x838], 0x104
push eax
lea ecx, [ebp - 0x831]
mov dword [ebp - 0x83c], 1
call fcn.00415ea0
mov dword [ebp - 0x840], eax
mov ebx, dword [edi + 0x10]
mov edx, 1
mov dword [ebp - 4], 0
mov ecx, dword [ebx - 8]
sub edx, dword [ebx - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4174c8
push 0x104
lea ecx, [edi + 0x10]
call fcn.0040a220
mov ebx, dword [edi + 0x10]
cmp dword [ebx - 8], 0x104
jl 0x417673
mov dword [ebx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 0x10]
mov word [eax + 0x208], cx
lea eax, [ebp - 0x838]
push eax
push ebx
lea eax, [ebp - 0x83c]
push eax
mov eax, dword [ebp - 0x840]
push 0x535958
push dword [eax]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x844]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417534
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41753f
xor ecx, ecx
jmp 0x417555
push dword [eax - 8]
push eax
call fcn.004c5c1b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41764b
mov eax, dword [edi + 0x10]
cmp ecx, dword [eax - 8]
jg 0x41764b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x10]
mov word [eax + ecx*2], dx
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41762f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [edi + 0x14]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x104
or edx, eax
jge 0x4175cb
push 0x104
lea ecx, [edi + 0x14]
call fcn.0040a220
mov ecx, dword [edi + 0x14]
cmp dword [ecx - 8], 0x104
jl 0x41767d
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [edi + 0x14]
push 0x104
push ecx
lea ecx, [ebp - 0x830]
mov word [eax + 0x208], dx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 4]
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x417609
xor ecx, ecx
jmp 0x41761b
push dword [eax - 8]
push eax
call fcn.004c5c1b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41764b
mov eax, dword [edi + 0x14]
cmp ecx, dword [eax - 8]
jg 0x41764b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x14]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490238
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00408b70
push 0x80070057
call fcn.00408b70
push 0x80070057
call fcn.00408b70
push 0x80070057
call fcn.00408b70
push 0x80070057
call fcn.00408b70
push 0x80070057
call fcn.00408b70
int3