Function at 0x403c70
Capabilities:
Get common file path

Disassembly:
push 0x2c
mov eax, 0x41e802
call fcn.00411a1c
mov eax, dword [0x427adc]
mov ecx, 0x427adc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
or dword [ebp - 0x30], 0xffffffff
lea eax, [ebp - 0x18]
mov edi, 0x104
push edi
mov esi, eax
mov dword [ebp - 0x38], eax
call fcn.00408136
push eax
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x38]
inc bl
call fcn.00404a3a
test bl, bl
je 0x403ce3
call fcn.0040d8c8
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, esi
call fcn.00411abb
ret
mov eax, dword [0x427adc]
mov ecx, 0x427adc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
or dword [ebp - 0x30], 0xffffffff
push edi
mov esi, eax
mov dword [ebp - 0x38], eax
call fcn.00408136
push eax
xor edi, edi
push edi
push 0x421604
push dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x38]
inc bl
call fcn.00404a3a
test bl, bl
je 0x403d49
call fcn.0040d8c8
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
jmp 0x403cd0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.00405092
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405564
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004086b3
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
jne 0x403dbd
add eax, 0xfffffff0
call fcn.00405ed3
mov byte [ebp - 4], 1
cmp byte [ebp - 0x2c], 0
jne 0x403d9d
push dword [ebp - 0x24]
call dword [ebp - 0x28]
pop ecx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
mov esi, 0x80004005
jmp 0x403cd0
push dword [ebp - 0x10]
push eax
call fcn.0040c416
test eax, eax
pop ecx
pop ecx
jge 0x403dff
call fcn.0040d8c8
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov byte [ebp - 4], 1
cmp byte [ebp - 0x2c], 0
jne 0x403def
push dword [ebp - 0x24]
call dword [ebp - 0x28]
pop ecx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405ed3
jmp 0x403d3c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0040ccce
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x403e2d
call fcn.0040d8c8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403dd3
mov eax, dword [0x427adc]
mov ecx, 0x427adc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.ppid
push str.delete
push str.__s___s_d
lea eax, [ebp - 0x20]
call fcn.004054ff
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x10]
call fcn.0040cb10
mov edi, eax
add esp, 0x18
test edi, edi
jge 0x403ebf
lea eax, [esi - 0x10]
call fcn.00405ed3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov byte [ebp - 4], 1
cmp byte [ebp - 0x2c], 0
jne 0x403ea2
push dword [ebp - 0x24]
call dword [ebp - 0x28]
pop ecx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
mov esi, edi
jmp 0x403cd0
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi - 0x10]
mov byte [ebp - 0x2c], 1
call fcn.00405ed3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov byte [ebp - 4], 1
cmp byte [ebp - 0x2c], 0
jne 0x403efa
push dword [ebp - 0x24]
call dword [ebp - 0x28]
pop ecx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
xor esi, esi
jmp 0x403cd0