Function at 0x439f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596241
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.00454ac1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x439fd2
push 0x80004005
call fcn.004010f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
cmp byte [ebp + 0xc], bl
je 0x43a157
xor ecx, ecx
push 0x11
mov word [ebp - 0x4c], cx
push 0x5b1ec4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
call fcn.004025a0
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x4c]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
call fcn.00439e20
mov byte [ebp - 4], 5
cmp dword [ebp - 0x38], 8
jb 0x43a03d
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00448f11
add esp, 4
mov ecx, dword [ebp - 0x20]
push ebx
push 0x5a9528
push ecx
xor eax, eax
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
call fcn.004071b0
test eax, eax
jne 0x43a108
lea edx, [ebp - 0x254]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
lea eax, [ebp - 0x254]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43a095
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x254]
push ecx
mov ecx, esi
call fcn.004025a0
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x43a0d0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00448f11
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov dword [ebp - 4], ebx
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a1fe
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x43a1fe
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.004089d0
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x43a142
mov edx, dword [ebp - 0x30]
push edx
call fcn.00448f11
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
jmp 0x43a1df
push 1
push 0x1a
lea ecx, [ebp - 0x45c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43a18d
push 0x5aa2bc
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x10]
push 0x5aa2b0
push eax
call fcn.004021f0
mov edi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [edi - 4], 1
jle 0x43a1a2
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004018f0
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov eax, edi
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43a1c0
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004025a0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a1fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8