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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535e88
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5917ec]
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 [0x599740]
mov edi, 1
mov dword [ebp - 0x440], 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 4
test al, 1
jne 0x43134b
or eax, edi
mov dword [0x59973c], 0
mov dword [0x599740], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
call fcn.00475ea5
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 0x42e660
push 0x59973c
call fcn.00476e7d
add esp, 0x10
test eax, eax
je 0x431760
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 2
push eax
call fcn.00475edf
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 0x55125c
push 0x599748
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4313ff
cmp dword [ebp - 0x444], 1
je 0x431725
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c0d00
mov eax, dword [0x5997d0]
add esp, 0xc
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0x104
test al, 1
jne 0x431444
or eax, 1
mov dword [0x5997cc], 0
mov dword [0x5997d0], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 5
push eax
call fcn.00475ea5
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 0x42ebf0
push 0x5997cc
call fcn.00476e7d
add esp, 0x10
test eax, eax
je 0x431743
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 7
push eax
call fcn.00475edf
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 0x54d334
push 0x5997d8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x431725
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 0x431725
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x59544c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x431779
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xa
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x431783
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.0040e280
test al, al
jne 0x4315c4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4315a2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040dbe0
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0040c660
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 0x431602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x43178d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0xd
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x431797
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.0040e280
test al, al
jne 0x431685
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431663
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040dbe0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0040c660
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 0x4316c0
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.00420750
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 0x431703
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 0x43171f
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.0049b8b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 8
push eax
call fcn.00475f21
add esp, 4
mov byte [ebp - 4], 6
test al, al
je 0x4317b7
jmp 0x4317a1
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
call fcn.00475f21
add esp, 4
mov byte [ebp - 4], 1
jmp 0x43175a
push 0x80004005
call fcn.0040c3e0
push 0x80004005
call fcn.0040c3e0
push 0x80004005
call fcn.0040c3e0
push 0x80004005
call fcn.0040c3e0
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.0040bca0
call fcn.0040e0a0
call fcn.00476f4e
int3