Function at 0x445a90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b1ea0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], bl
call fcn.0045f338
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x445adb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
mov dword [esp + 0x28], ebx
je 0x445b39
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x445b00
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004017c0
mov edi, dword [esp + 0x18]
push edi
call fcn.004457a0
xor ecx, ecx
add esp, 4
cmp edx, ecx
ja 0x445c3a
jb 0x445b39
cmp eax, dword [esp + 0x38]
jae 0x445c3a
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x17]
push ecx
push ebx
call ebp
mov esi, eax
cmp esi, ebx
je 0x445be6
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x445b70
push esi
lea ecx, [esp + 0x1c]
call fcn.004015c0
mov edi, dword [esp + 0x18]
push edi
push esi
call ebp
cmp edi, ebx
jne 0x445b7c
xor eax, eax
jmp 0x445b92
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x445b81
sub eax, edx
js 0x445c30
cmp eax, dword [edi - 8]
jg 0x445c30
mov dword [edi - 0xc], eax
push edi
mov byte [eax + edi], bl
xor esi, esi
call fcn.004457a0
add esp, 4
cmp edx, esi
ja 0x445c3a
jb 0x445bbc
cmp eax, dword [esp + 0x38]
jae 0x445c3a
lea ecx, [esp + 0x18]
push ecx
call fcn.00445a30
mov edi, dword [esp + 0x1c]
add esp, 4
test al, al
je 0x445be6
push edi
call fcn.004457a0
add esp, 4
cmp edx, esi
ja 0x445c3a
jb 0x445be6
cmp eax, dword [esp + 0x38]
jae 0x445c3a
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x17]
push edx
mov ecx, esi
call fcn.00401d30
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445c1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00401090
call fcn.0045f338
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x445c54
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x28], 1
jge 0x445c8f
push 0x104
lea ecx, [esp + 0x20]
call fcn.004015c0
mov esi, dword [esp + 0x1c]
push esi
push ebx
push 0x5053cc
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x445d0b
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x17]
push ecx
mov ecx, ebp
call fcn.00401d30
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x445cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445cf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp esi, ebx
jne 0x445d13
xor eax, eax
jmp 0x445d29
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x445d18
sub eax, edx
js 0x445c30
cmp eax, dword [esi - 8]
jg 0x445c30
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
add esi, 0xfffffff0
push esi
call fcn.00402280
mov ebp, dword [esp + 0x34]
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x28], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445cd1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x445cd1