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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527848
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5898bc]
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 [0x591850]
mov edi, 1
mov dword [ebp - 0x440], 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 4
test al, 1
jne 0x42d7db
or eax, edi
mov dword [0x59184c], 0
mov dword [0x591850], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
call fcn.00472b55
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 0x42ae80
push 0x59184c
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x42dbf0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 2
push eax
call fcn.00472b8f
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 0x542bb4
push 0x591858
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42d88f
cmp dword [ebp - 0x444], 1
je 0x42dbb5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b2720
mov eax, dword [0x5918e0]
add esp, 0xc
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0x104
test al, 1
jne 0x42d8d4
or eax, 1
mov dword [0x5918dc], 0
mov dword [0x5918e0], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 5
push eax
call fcn.00472b55
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 0x42b270
push 0x5918dc
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x42dbd3
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 7
push eax
call fcn.00472b8f
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 0x53ec84
push 0x5918e8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42dbb5
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 0x42dbb5
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x58d56c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x42dc09
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xa
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x42dc13
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.0040afe0
test al, al
jne 0x42da54
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42da32
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040a830
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00409240
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 0x42da92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x42dc1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0xd
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x42dc27
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.0040afe0
test al, al
jne 0x42db15
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42daf3
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040a830
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00409240
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 0x42db50
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.0041d3e0
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 0x42db93
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 0x42dbaf
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.00498678
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 8
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 6
test al, al
je 0x42dc47
jmp 0x42dc31
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 1
jmp 0x42dbea
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
call fcn.00473bfc
int3