Function at 0x44d040
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ea48
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp - 0x280]
xor ecx, ecx
cmp dword [eax + 0x58], 1
sete cl
mov byte [0x56d1b6], cl
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.0044ac80
test eax, eax
jne 0x44d0a0
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x44d0c0
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b9b1b
add esp, 0xc
jmp 0x44d139
mov edx, dword [ebp - 0x280]
cmp dword [edx + 0x58], 0
je 0x44d0ff
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x280]
call fcn.0044cf10
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x44d0fd
mov eax, dword [ebp - 0x23c]
jmp 0x44d386
jmp 0x44d112
push 0
push 0x26
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x15
mov ecx, 0x56d2d0
call fcn.0046a310
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.0050ccf0
add esp, 8
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x288]
push ecx
mov ecx, 0x56d294
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00402a30
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x56d200
call fcn.0040b040
call fcn.0046f9c0
call fcn.0046f640
call fcn.0046feb0
movzx eax, byte [0x56d2b0]
test eax, eax
je 0x44d1bb
call fcn.0046ff90
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x280]
call fcn.0044ac80
test eax, eax
jne 0x44d1db
mov eax, 1
jmp 0x44d386
mov ecx, dword [ebp - 0x280]
add ecx, 0x6c
call fcn.0044d8b0
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.0044ad90
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x280]
add ecx, 0x6c
call fcn.0044d840
jmp 0x44d226
push 0
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00447dc0
lea edx, [ebp - 0x270]
push edx
mov ecx, dword [ebp - 0x280]
add ecx, 0x6c
call fcn.00401a90
push eax
lea ecx, [ebp - 0x244]
call fcn.00447e00
movzx eax, al
test eax, eax
je 0x44d288
lea ecx, [ebp - 0x244]
call fcn.004530c0
mov ecx, eax
call fcn.00429450
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44d286
lea ecx, [ebp - 0x244]
call fcn.004530c0
mov ecx, eax
call fcn.00429450
push eax
call fcn.0047a300
add esp, 4
jmp 0x44d212
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x280]
call fcn.0044ad90
mov ecx, dword [ebp - 0x280]
add ecx, 0x6c
call fcn.0044d8b0
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5197e4
push 0x56d200
lea eax, [ebp - 0x238]
push eax
call fcn.004473d0
add esp, 0xc
mov dword [ebp - 4], 1
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x274], esp
lea edx, [ebp - 0x238]
push edx
call fcn.00401300
mov dword [ebp - 0x28c], eax
call fcn.0044f6d0
add esp, 0x20
mov eax, dword [ebp - 0x280]
mov dword [eax + 0x54], 1
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.0044b270
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x278], esp
lea edx, [ebp - 0x238]
push edx
call fcn.00401300
mov dword [ebp - 0x290], eax
call fcn.0044f6d0
add esp, 0x20
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
movzx eax, byte [ebp + 8]
test eax, eax
sete cl
movzx edx, cl
push edx
mov ecx, dword [ebp - 0x280]
call fcn.0044caf0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401340
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret 8