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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5277bc
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5898bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x42d364
push edi
call fcn.0042e030
mov ecx, eax
call fcn.00422c90
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004b2720
add esp, 0xc
mov dword [ebp - 0x840], 1
lea ecx, [ebp - 0x831]
mov dword [ebp - 0x83c], 0x104
call fcn.0042c020
lea ecx, [ebp - 0x83c]
push ecx
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x840]
push ecx
push 0x53ec84
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42d502
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x628]
push str.birdwp.exe
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d426
lea ecx, [ebp - 0x831]
call fcn.0042b760
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d502
call fcn.0042e030
mov ecx, eax
call fcn.00422550
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.00417730
push str.bizhi
call fcn.0041dbd0
mov ecx, eax
call fcn.004177f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x58d56c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.004176a0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x838], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.exist_wp
mov dword [ebp - 4], 0
call fcn.0041dbd0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00417290
test esi, esi
je 0x42d711
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x42d711
push str.exist
push eax
push esi
call fcn.004ce058
add esp, 0xc
jmp 0x42d711
call fcn.0042e030
mov ecx, eax
call fcn.00423b20
test eax, eax
jne 0x42d5ef
push 1
call fcn.0041efc0
add esp, 4
test eax, eax
jne 0x42d5ef
call fcn.0042e030
mov ecx, eax
call fcn.00422550
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.00417730
push str.bizhi
call fcn.0041dbd0
mov ecx, eax
call fcn.004177f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x58d56c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.004176a0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x838], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.giveup
mov dword [ebp - 4], 1
call fcn.0041dbd0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00417290
test esi, esi
je 0x42d711
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x42d711
push str.giveup
push eax
push esi
call fcn.004ce058
add esp, 0xc
jmp 0x42d711
cmp dword [0x58d628], 0
jne 0x42d711
push 0xa
push edi
push 0
push dword [0x58d56c]
mov dword [0x58d628], 1
call fcn.0042f6a0
add esp, 0x10
test esi, esi
je 0x42d711
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x42d711
call fcn.0042e030
mov ecx, eax
call fcn.00422550
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.00417730
push str.bizhi
call fcn.0041dbd0
mov ecx, eax
call fcn.004177f0
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x104
push eax
push dword [0x58d56c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x830]
push eax
call fcn.0041dbd0
mov ecx, eax
call fcn.004176a0
cmp dword [0x58827c], 0
jne 0x42d6d0
push 0x542cf0
push edi
push esi
call fcn.004ce058
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x838], esp
mov dword [eax + 0x24], 0
push 0
push 0
mov dword [ebp - 4], 2
push 0x542cf0
jmp 0x42d6fe
push str.fail
push edi
push esi
call fcn.004ce058
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x838], esp
mov dword [eax + 0x24], 0
push 0
push 0
mov dword [ebp - 4], 3
push str.fail
call fcn.0041dbd0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00417290
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00498678
mov esp, ebp
pop ebp
ret 0xc