Function at 0x445c00
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579c20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
jne 0x4466d1
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov ecx, 1
mov dword [edi + 8], ecx
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x445cb5
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x445c67
push 0x104
mov ecx, ebx
call fcn.004077a0
mov esi, dword [ebx]
call fcn.0044af80
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x445c89
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov eax, dword [edi + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.0040e940
lea esi, [ebp - 0x10]
call fcn.0044a990
add esp, 4
lea ebx, [edi + 0x10]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040d290
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445d04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x5c
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
push str.Resource_
lea ecx, [ebp - 0x10]
push ebx
push ecx
call fcn.0040d110
add esp, 0xc
lea ecx, [edi + 0x3c]
push eax
mov dword [ebp - 4], 1
call fcn.0040d290
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x445d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call fcn.004391b0
lea ecx, [edi + 0x4c]
push eax
mov dword [ebp - 4], 2
call fcn.0040d290
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call fcn.00439250
lea ecx, [edi + 0x48]
push eax
mov dword [ebp - 4], 3
call fcn.0040d290
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445ddb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call fcn.004392f0
lea ecx, [edi + 0x5c]
push eax
mov dword [ebp - 4], 4
call fcn.0040d290
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x445e17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x14]
cmp dword [ecx - 0xc], 0
lea ebx, [edi + 0x14]
jne 0x445e9e
mov eax, ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x445e45
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x445e68
jmp 0x445e76
push 0x80070057
call fcn.00407ad0
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ecx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov edx, dword [edi + 0x18]
cmp dword [edx - 0xc], 0
lea ebx, [edi + 0x18]
jne 0x445f21
mov eax, edx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x445ecc
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x445ef5
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esi, 0x1c
cmp dword [eax - 0xc], 0
jne 0x446006
call fcn.0044b010
test eax, eax
je 0x445f90
push str.SysWow64_
lea ecx, [ebp - 0x14]
push ebx
push ecx
call fcn.0040d110
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.0040d290
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x446006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x446006
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x445fb3
push 0x104
mov ecx, esi
call fcn.004077a0
mov eax, dword [esi]
push 0x104
push eax
call edi
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x445fd8
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
mov ebx, esi
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, esi
call fcn.004138d0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0x20]
jne 0x446087
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446036
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x44605b
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0x24]
jne 0x44610c
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4460b4
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4460e0
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov edi, esi
mov eax, dword [edi + 0x28]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebx, [edi + 0x28]
jne 0x4461ae
call fcn.0044b010
test eax, eax
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
je 0x4461f9
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446154
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
push str._ProgramW6432_
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x446170
xor eax, eax
jmp 0x446182
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov eax, dword [edi + 0x2c]
cmp dword [eax - 0xc], 0
lea ebx, [edi + 0x2c]
jne 0x446266
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4461df
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramFiles_
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x446228
jmp 0x44623a
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446212
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x446163
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov eax, dword [edi + 0x30]
cmp dword [eax - 0xc], 0
lea ebx, [edi + 0x30]
jne 0x446300
call fcn.0044b010
test eax, eax
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
je 0x44634f
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4462a6
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramW6432_
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x4462c2
xor eax, eax
jmp 0x4462d4
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, edi
mov eax, dword [ebx + 0x34]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add ebx, 0x34
cmp dword [eax - 0xc], 0
jne 0x4463b8
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446339
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0
push 0x10
push eax
push 0
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x44637a
jmp 0x44638c
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446368
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
push str._CommonProgramFiles_
jmp 0x4462b3
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
add ebx, 0x38
cmp dword [eax - 0xc], 0
jne 0x44643a
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4463e8
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0
push 0x19
push eax
push 0
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x44640e
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
add ebx, 0x40
cmp dword [eax - 0xc], 0
jne 0x4464c0
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x44646a
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0x104
push eax
push str._APPDATA_
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x446494
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x44]
add ebx, 0x44
cmp dword [eax - 0xc], 0
jne 0x446548
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4464f0
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x44651c
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x50]
add ebx, 0x50
cmp dword [eax - 0xc], 0
jne 0x4465ca
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x446578
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0
push 2
push eax
push 0
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x44659e
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x54]
add ebx, 0x54
cmp dword [eax - 0xc], 0
jne 0x44664c
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4465fa
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push 0
push 0x17
push eax
push 0
call edi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x446620
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x58]
add ebx, 0x58
cmp dword [eax - 0xc], 0
jne 0x4466d1
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x44667c
push 0x104
mov ecx, ebx
call fcn.004077a0
mov eax, dword [ebx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4466a5
push ecx
push eax
call fcn.0054e54a
add esp, 8
test eax, eax
js 0x445e5e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x445e5e
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4