Function at 0x4374e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b263b
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.004a7630
mov eax, dword [0x4c8080]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 0x101c], ebp
cmp eax, ebp
je 0x4375b2
lea ecx, [esp + 0x14]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x14]
test edx, edx
jne 0x437544
xor ebx, ebx
jmp 0x437551
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x437560
cmp ebx, dword [edi - 4]
jle 0x43757f
lea ecx, [esp + 0x10]
call fcn.00405e10
push ebx
lea ecx, [esp + 0x14]
call fcn.00405a70
cmp eax, ebp
je 0x437658
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x4375a2
mov ecx, eax
lea esi, [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov dword [edi - 8], ebx
mov ecx, dword [esp + 0x10]
mov word [eax + ecx], bp
jmp 0x437658
call fcn.00437710
mov esi, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esi]
cmp eax, ebx
je 0x43765c
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebp
mov edx, dword [0x4c8084]
jge 0x4375de
lea edi, [eax - 0xc]
cmp edi, edx
jne 0x4375e3
cmp dword [ebx - 0xc], ebp
jge 0x43761c
mov esi, dword [ebx - 8]
lea ecx, [esp + 0x10]
push esi
call fcn.00405d70
test eax, eax
je 0x437658
mov eax, dword [esp + 0x10]
lea edi, [esi + esi]
push edi
lea edx, [esi + esi + 2]
push ebx
push edx
push eax
call fcn.00404530
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ecx - 8], esi
mov edx, dword [esp + 0x10]
mov word [edi + edx], bp
jmp 0x437658
add eax, 0xfffffff4
cmp eax, edx
je 0x437648
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43763e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [0x4c8080]
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov esi, dword [esp + 0x1024]
lea ecx, [eax - 0xc]
cmp edx, ebp
jl 0x437678
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4376c1
mov edx, dword [0x4c8080]
mov ebp, eax
test eax, eax
mov dword [esi], edx
jne 0x43768a
xor edi, edi
jmp 0x437693
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.00405d70
test eax, eax
je 0x4376c1
mov ecx, dword [esi]
lea ebx, [edi + edi]
push ebx
lea eax, [edi + edi + 2]
push ebp
push eax
push ecx
call fcn.00404530
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4376f0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4376f0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov ecx, dword [esp + 0x1014]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1010
ret 8