Function at 0x462730
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525b51
mov eax, dword fs:[0]
push eax
mov eax, 0x1e28
call fcn.004906a0
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 esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a99f0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push str.birdwp.exe
push dword [esi]
push eax
call ebx
or edi, 0xffffffff
cmp dword [esi + 8], 0
je 0x462897
push 0x800
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0xe28]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1628]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x1e30]
lea ecx, [ebp - 0x1e29]
push eax
call fcn.00460810
push dword [eax]
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0x1628]
push eax
call ebx
mov edx, dword [ebp - 0x1e30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46281d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1e30]
push eax
lea ecx, [ebp - 0x1e29]
call fcn.00462060
push 0
push 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x1628]
push ecx
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
mov ecx, esi
call fcn.00462f50
mov edx, dword [ebp - 0x1e30]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
sete byte [ebp - 0x1e29]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462887
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1e29], 0
je 0x462897
xor eax, eax
jmp 0x462b75
cmp dword [esi + 0xc], 0
je 0x4629f6
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1e30]
push eax
lea ecx, [ebp - 0x1e29]
call fcn.0045fe10
push dword [eax]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x1e30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462908
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x462928
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1628]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x1e30]
lea ecx, [ebp - 0x1e29]
push eax
call fcn.0045ff00
push dword [eax]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1628]
push eax
call ebx
mov edx, dword [ebp - 0x1e30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46297f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1e30]
push eax
lea ecx, [ebp - 0x1e29]
call fcn.00460660
push 0
push 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x1628]
push ecx
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
mov ecx, esi
call fcn.00462f50
mov edx, dword [ebp - 0x1e30]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
sete byte [ebp - 0x1e29]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4629e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1e29], 0
jne 0x462890
cmp dword [esi + 0x10], 0
je 0x462b70
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1e30]
push eax
lea ecx, [ebp - 0x1e29]
call fcn.00460de0
push dword [eax]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x1e30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462a67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x462a87
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e28]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x1e30]
lea ecx, [ebp - 0x1e29]
push eax
call fcn.00461c20
push dword [eax]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1e28]
push eax
call ebx
mov edx, dword [ebp - 0x1e30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x628]
push str.Uninstall.exe
push dword [esi]
push eax
call ebx
lea eax, [ebp - 0x1e34]
push eax
lea ecx, [ebp - 0x1e29]
call fcn.004609d0
push 1
push 0
lea ecx, [ebp - 0x628]
mov dword [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1e28]
push ecx
push 0
lea ecx, [ebp - 0x628]
push ecx
push dword [eax]
mov ecx, esi
call fcn.00462f50
mov edx, dword [ebp - 0x1e34]
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x462b68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x462890
mov eax, 1
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