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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d56b8
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x64c00c]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x22c], 0
test eax, eax
je 0x450ebf
cmp word [eax], 0
je 0x450ebf
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x450f37
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x220], edi
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
push eax
call fcn.0044ed10
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x450caf
lea eax, [ebp - 0x224]
push eax
call fcn.0044ef60
test eax, eax
jne 0x450caf
lea ecx, [ebp - 0x224]
call fcn.00407ae0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x65cc38]
cmp eax, dword [ecx + 4]
jle 0x450ab5
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], ebx
jne 0x450ab5
mov byte [ebp - 4], 3
call fcn.00414990
push 0x5d7c10
call fcn.00484084
add esp, 4
push 0x65cc38
call fcn.00483be3
add esp, 4
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x65cc40
call fcn.004124e0
push eax
push str.name
push str.activate
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
mov ecx, 0x65cc40
call fcn.00412cf0
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450b15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.00408450
add esp, 4
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.00406a90
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450b61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450b8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
push edi
call fcn.00406b20
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.00407c60
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x450f19
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push str.0ab1bbc7_f992_467b_bf6c_61c53af8e063
mov byte [ebp - 4], 8
lea eax, [ebp - 0x228]
push dword [ebp - 0x21c]
push str._s_s_
push eax
call fcn.00408c40
mov esi, dword [ebp - 0x228]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450c0e
test al, 0x10
je 0x450c0e
mov ecx, esi
call fcn.00407f80
test eax, eax
je 0x450c62
mov ecx, esi
call fcn.00407ea0
test eax, eax
je 0x450c62
mov ecx, esi
call fcn.00407f80
test eax, eax
je 0x450c62
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450c3f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450caf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x450caf
mov eax, ebx
mov byte [ebp - 4], 7
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450c7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450c9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00406bc0
mov edi, dword [ebp - 0x220]
cmp dword [edi - 0xc], 0
jne 0x450e0c
mov byte [ebp - 4], 9
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x450f23
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x208
push 0
mov dword [ebp - 0x22c], 4
lea esi, [eax + 0x10]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], esi
push eax
call fcn.005a52f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x450d48
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450d20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00406ed0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00406a90
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450d75
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], 0
jne 0x450e0c
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x450f2d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp - 0x234]
add eax, 0x10
mov dword [edi], eax
push 0x635b44
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00406c20
test al, al
jne 0x450dc6
push 0
push 0x635b44
mov ecx, edi
call fcn.00406ed0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450de7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x450ef9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x450ef9
lea ecx, [ebp - 0x220]
call fcn.00407ae0
push dword [ebp - 0x23c]
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x230]
call fcn.0040fa40
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call fcn.00407ae0
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00406d70
mov edi, dword [ebp - 0x234]
add eax, 0x10
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
mov dword [edi], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450e7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450e9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x450ef9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x450ef9
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x450f37
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x635b44
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00406c20
test al, al
jne 0x450ef9
push 0
push 0x635b44
mov ecx, edi
call fcn.00406ed0
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.00483ab6
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3