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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65df41
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
push 0x6f7bda
mov dword [ebp - 0x24c], 0
call fcn.004506d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], 0
call fcn.00454520
push 0x104
mov esi, eax
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.004b9340
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x104
push 0
push eax
call fcn.004b9340
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov ebx, 0x25
test eax, eax
je 0x44f65c
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x44f65c
lea ecx, [ebp - 0x23c]
push ecx
push 0
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x1a], 0x73
push eax
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], bx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00450e20
add esp, 0xc
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x4d
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x284]
call fcn.004764f0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0044e9e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x270]
cmp ecx, 8
jb 0x44f6cb
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f6c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fdca
push ecx
push edx
call fcn.004b75c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
mov dword [ebp - 0x248], eax
lea edx, [eax + 0x4e]
call fcn.004764f0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.0044e9e0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x254]
cmp ecx, 8
jb 0x44f751
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f747
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fdcf
push ecx
push edx
call fcn.004b75c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov dword [ebp - 0x244], eax
lea edx, [eax + 0x4f]
call fcn.004764f0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x244]
call fcn.0044e9e0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x270]
cmp ecx, 8
jb 0x44f7d7
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f7cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fdd4
push ecx
push edx
call fcn.004b75c0
add esp, 8
mov esi, dword [ebp - 0x244]
xor eax, eax
add esi, 0xfffffff0
mov dword [ebp - 0x274], 0
or ebx, 0xffffffff
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp dword [esi + 4], eax
jne 0x44f992
mov eax, dword [ebp - 0x248]
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x44f867
mov edx, dword [esi + 0xc]
lea edi, [esi + 0xc]
shr edx, 0x1f
test dl, dl
jne 0x44f858
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x44f858
call fcn.00450ad0
mov dword [ebp - 0x240], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x44f84d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [ebp - 0x244], eax
jmp 0x44f867
push dword [ecx + 4]
lea ecx, [ebp - 0x244]
push eax
call fcn.00450c10
mov edx, 0x54
lea ecx, [ebp - 0x268]
call fcn.004764f0
mov esi, eax
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 8
jb 0x44f885
mov esi, dword [esi]
call fcn.0044db80
mov ecx, eax
test ecx, ecx
je 0x44fdd9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
push esi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xc
call fcn.00450950
test al, al
jne 0x44f8df
test esi, esi
jne 0x44f8be
xor ecx, ecx
jmp 0x44f8d2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44f8c3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x240]
call fcn.00450c10
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x254]
cmp ecx, 8
jb 0x44f923
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f919
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fde3
push ecx
push edx
call fcn.004b75c0
add esp, 8
mov esi, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
test esi, esi
je 0x44f97b
mov eax, dword [ebp - 0x244]
cmp dword [eax - 0xc], 0
jl 0x44f97b
push esi
push eax
call fcn.004b8f89
add esp, 8
test eax, eax
je 0x44f97b
sub eax, dword [ebp - 0x244]
sar eax, 1
js 0x44f97b
push ecx
push esi
lea ecx, [ebp - 0x244]
call fcn.00450460
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44f992
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
call fcn.0044db80
mov ecx, eax
test ecx, ecx
je 0x44fde8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0x730025
mov dword [ebp - 0x24], 0x25005c
mov dword [ebp - 0x20], 0x73
cmp dword [esi - 4], 1
jle 0x44f9ef
push dword [esi - 0xc]
lea ecx, [ebp - 0x248]
call fcn.00450a10
mov esi, dword [ebp - 0x248]
mov edx, 0x55
lea ecx, [ebp - 0x268]
call fcn.004764f0
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x44fa0b
mov eax, dword [eax]
push edi
push esi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00450e20
mov byte [ebp - 4], 0x10
add esp, 0x10
mov ecx, dword [ebp - 0x254]
cmp ecx, 8
jb 0x44fa61
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44fa57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fdf2
push ecx
push edx
call fcn.004b75c0
add esp, 8
mov eax, dword [ebp - 0x248]
push dword [eax - 8]
push eax
call fcn.004c0596
mov edx, eax
add esp, 8
test edx, edx
js 0x44fdc0
mov ecx, dword [ebp - 0x248]
cmp edx, dword [ecx - 8]
jg 0x44fdc0
mov esi, dword [ebp - 0x240]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x248]
push esi
mov word [eax + edx*2], cx
call edi
test eax, eax
jne 0x44fcf3
mov eax, dword [ebp - 0x244]
mov esi, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x44fad5
push dword [eax - 0xc]
lea ecx, [ebp - 0x244]
call fcn.00450a10
mov eax, dword [ebp - 0x244]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00450e20
mov eax, dword [ebp - 0x244]
push dword [eax - 8]
push eax
call fcn.004c0596
mov edx, eax
add esp, 0x18
test edx, edx
js 0x44fdc0
mov ecx, dword [ebp - 0x244]
cmp edx, dword [ecx - 8]
jg 0x44fdc0
mov esi, dword [ebp - 0x240]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x244]
push esi
mov word [eax + edx*2], cx
call edi
test eax, eax
jne 0x44fcf3
mov eax, dword [ebp - 0x24c]
mov esi, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x44fb55
push dword [eax - 0xc]
lea ecx, [ebp - 0x24c]
call fcn.00450a10
mov eax, dword [ebp - 0x24c]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00450e20
mov eax, dword [ebp - 0x24c]
push dword [eax - 8]
push eax
call fcn.004c0596
mov edx, eax
add esp, 0x18
test edx, edx
js 0x44fdc0
mov ecx, dword [ebp - 0x24c]
cmp edx, dword [ecx - 8]
jg 0x44fdc0
mov esi, dword [ebp - 0x240]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x24c]
push esi
mov word [eax + edx*2], cx
call edi
test eax, eax
jne 0x44fcf3
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x44fbd5
push dword [eax - 0xc]
lea ecx, [ebp - 0x250]
call fcn.00450a10
mov eax, dword [ebp - 0x250]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00450e20
mov eax, dword [ebp - 0x250]
push dword [eax - 8]
push eax
call fcn.004c0596
mov edx, eax
add esp, 0x18
test edx, edx
js 0x44fdc0
mov ecx, dword [ebp - 0x250]
cmp edx, dword [ecx - 8]
jg 0x44fdc0
mov esi, dword [ebp - 0x240]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x250]
push esi
mov word [eax + edx*2], cx
call edi
test eax, eax
jne 0x44fcf3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44fc49
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fc66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fc83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fca0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fcbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x44fcd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
mov eax, 0x25
mov dword [ebp - 0x2e], 0x73
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push esi
push eax
push dword [ebp - 0x26c]
call fcn.00450e20
add esp, 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44fd2d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fd4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fd67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fd84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fda1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x44fdb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x44fcd7
push 0x80070057
call fcn.0044d940
call fcn.004bccbf
call fcn.004bccbf
call fcn.004bccbf
push 0x80004005
call fcn.0044d940
call fcn.004bccbf
push 0x80004005
call fcn.0044d940
call fcn.004bccbf
int3