Function at 0x44ed20
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d08
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 4], esi
wait
lea ecx, [ebp - 0x14]
call fcn.00416510
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00425940
xor edi, edi
mov dword [ebp - 0x3c], edi
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x2c], ecx
cmp edi, dword [ebp - 0x2c]
jge 0x44ee6e
cmp edi, esi
jl 0x44ee5f
cmp edi, dword [ebp - 0x50]
jge 0x44ee5f
mov edx, dword [ebp - 0x58]
lea eax, [edx + edi*4]
push eax
lea ecx, [ebp - 0x28]
call fcn.004070a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
call fcn.00447010
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408180
test eax, eax
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00406ef0
test bl, bl
je 0x44ee3a
cmp edi, dword [ebp - 0x50]
jge 0x44ee5f
mov ebx, dword [ebp - 0x24]
add ebx, 0xdc
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + edi*4]
lea eax, [ecx - 0x10]
mov esi, dword [ebx]
sub esi, 0x10
cmp eax, esi
je 0x44ee3a
cmp dword [esi + 0xc], 0
jl 0x44ee51
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x44ee51
push eax
call fcn.00406d80
add esp, 4
mov dword [ebp - 0x38], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44ee32
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
mov dword [ebx], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406ef0
inc edi
mov dword [ebp - 0x3c], edi
xor esi, esi
jmp 0x44ed84
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00407100
jmp 0x44ee3a
push esi
push esi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea ecx, [ebp - 0x18]
call fcn.00408ac0
mov byte [ebp - 4], 5
push 0x104
lea ecx, [ebp - 0x18]
call fcn.004071b0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00406cd0
lea edx, [ebp - 0x2c]
push edx
call fcn.00422a20
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00445e80
add esp, 0x10
mov bl, 7
mov byte [ebp - 4], bl
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409590
mov byte [ebp - 4], 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
cmp eax, esi
je 0x44ef2d
lea edi, [esi + 0xc]
cmp dword [edi], 0
jl 0x44ef20
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x44ef20
push eax
call fcn.00406d80
add esp, 4
mov dword [ebp - 0x38], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x44ef15
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
mov dword [ebp - 0x14], ecx
jmp 0x44ef2d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407100
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004e97e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00406ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00406ef0
lea edx, [ebp - 0x38]
push edx
call fcn.0044a590
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push ecx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.00406ef0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
call fcn.00411580
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411580
mov bl, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
push ecx
call fcn.00449690
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00406ef0
lea edx, [ebp - 0x38]
push edx
call fcn.0044b140
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
push ecx
push eax
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00406ef0
lea edx, [ebp - 0x38]
push edx
call fcn.00448e30
add esp, 4
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00406ef0
lea eax, [ebp - 0x38]
push eax
call fcn.0044a390
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00406ef0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0044b3f0
mov edi, eax
fld qword [ebp + 0x18]
fmul qword [0x536200]
fadd qword [ebp + 0x10]
fstp qword [ebp - 0x4c]
lea edx, [ebp - 0x44]
push edx
mov ecx, esi
call fcn.00409990
mov byte [ebp - 4], 0x11
mov esi, dword [ebp + 0xc]
lea ecx, [ecx]
cmp dword [ebp - 0x40], 0
je 0x44f1ce
test esi, esi
je 0x44f08e
lea eax, [edi + edi]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fdivr qword [ebp + 0x18]
fadd qword [ebp - 0x4c]
fst qword [ebp - 0x4c]
mov edx, dword [esi]
sub esp, 8
fstp qword [esp]
mov ecx, esi
mov eax, dword [edx]
call eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00409850
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x38]
push edx
call fcn.004770d0
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xc]
call fcn.00408180
test eax, eax
sete byte [ebp + 0xb]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x38]
call fcn.00406ef0
cmp byte [ebp + 0xb], 0
je 0x44f14f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.0044e690
test al, al
jne 0x44f14f
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0xc]
call fcn.00406ef0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00408110
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.004e97e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.004e97e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041ed90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e97e0
xor al, al
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea edx, [ebp - 0x34]
push edx
call fcn.00448e30
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xc]
call fcn.00408180
test eax, eax
sete byte [ebp + 0xb]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34]
call fcn.00406ef0
cmp byte [ebp + 0xb], 0
je 0x44f198
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.0044ceb0
test al, al
je 0x44f0e5
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00409b50
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x44]
call fcn.00408c80
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.00408110
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0xc]
call fcn.00406ef0
jmp 0x44f060
test esi, esi
je 0x44f1e6
mov edx, dword [esi]
fld qword [ebp + 0x10]
fadd qword [ebp + 0x18]
sub esp, 8
fstp qword [esp]
mov ecx, esi
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x24]
call fcn.00443980
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00408110
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.004e97e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.004e97e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041ed90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e97e0
mov al, 1
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18