Function at 0x437f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2c73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
call fcn.00491e30
test eax, eax
je 0x4381f4
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp + 8]
lea ecx, [esi + 4]
xor ebx, ebx
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ecx
call fcn.00437bd0
test eax, eax
je 0x437f99
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004787a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], ebx
jge 0x437fd4
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402ab9
mov edi, dword [ebp - 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp edi, ebx
jne 0x437fe8
xor eax, eax
jmp 0x437ff9
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437ff0
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.004787a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x43803c
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402ab9
mov esi, dword [ebp - 0x14]
push esi
push ebx
push 0x4b2380
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp esi, ebx
jne 0x438052
xor eax, eax
jmp 0x438060
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438057
sub eax, edx
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
jne 0x4380ce
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4380a4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4381f4
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
jmp 0x4381f4
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004796ae
push 0
push 0x1000
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0047e6fe
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 4
call dword [edx + 8]
lea ecx, [ebp - 0x84]
call fcn.0047e42a
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0047e7e3
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004796d0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00437d90
mov dword [eax], ebx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438184
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8