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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5867ec]
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 eax, dword [0x58e738]
mov edi, 1
mov dword [ebp - 0x440], 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 4
test al, 1
jne 0x42f3db
or eax, edi
mov dword [0x58e734], 0
mov dword [0x58e738], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
call fcn.00473ac5
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 1
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0x42c6f0
push 0x58e734
call fcn.00474a9b
add esp, 0x10
test eax, eax
je 0x42f7f0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 2
push eax
call fcn.00473aff
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x43c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x54725c
push 0x58e740
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42f48f
cmp dword [ebp - 0x444], 1
je 0x42f7b5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b8590
mov eax, dword [0x58e7c8]
add esp, 0xc
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0x104
test al, 1
jne 0x42f4d4
or eax, 1
mov dword [0x58e7c4], 0
mov dword [0x58e7c8], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 5
push eax
call fcn.00473ac5
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 6
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0x42cc80
push 0x58e7c4
call fcn.00474a9b
add esp, 0x10
test eax, eax
je 0x42f7d3
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 7
push eax
call fcn.00473aff
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x543334
push 0x58e7d0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42f7b5
push str.birdwp.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f7b5
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b8590
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x58a44c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040af30
mov ecx, eax
test ecx, ecx
je 0x42f809
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xa
call fcn.0040af30
mov ecx, eax
test ecx, ecx
je 0x42f813
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x428]
call fcn.0040c630
test al, al
jne 0x42f654
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f632
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040bf90
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0040aa00
mov edx, dword [ebp - 0x428]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f692
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040af30
mov ecx, eax
test ecx, ecx
je 0x42f81d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0xd
call fcn.0040af30
mov ecx, eax
test ecx, ecx
je 0x42f827
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x428]
call fcn.0040c630
test al, al
jne 0x42f715
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f6f3
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040bf90
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0040aa00
mov edx, dword [ebp - 0x428]
add esp, 8
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f750
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x434]
mov esi, dword [ebp - 0x430]
push edi
push esi
call fcn.0041eb10
xor edx, edx
mov byte [ebp - 4], 0xa
add esp, 8
mov ecx, 1
test eax, eax
mov eax, ebx
cmovs ecx, edx
add esi, 0xfffffff0
mov dword [ebp - 0x430], ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42f793
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42f7af
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, dword [ebp - 0x430]
mov eax, edi
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.004994d8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 8
push eax
call fcn.00473b41
add esp, 4
mov byte [ebp - 4], 6
test al, al
je 0x42f847
jmp 0x42f831
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
call fcn.00473b41
add esp, 4
mov byte [ebp - 4], 1
jmp 0x42f7ea
push 0x80004005
call fcn.0040a780
push 0x80004005
call fcn.0040a780
push 0x80004005
call fcn.0040a780
push 0x80004005
call fcn.0040a780
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.0040a040
call fcn.0040c450
call fcn.00474b6c
int3