Function at 0x40cca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475cb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [esp + 0x10], 0
mov eax, dword [0x49cadc]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov bl, 3
test edi, edi
mov byte [esp + 0x28], bl
mov byte [esp + 0xf], 0
je 0x40ccfa
mov al, byte [edi]
mov byte [edi], 0
mov byte [esp + 0xf], al
jmp 0x40ccfe
lea edi, [esp + 0xf]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0040ee40
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cd5f
lea edx, [esp + 0x3c]
push edx
call fcn.0040d090
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
call fcn.004047b0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x28], bl
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40cd5f
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40cd5f
call fcn.00403dc0
push 0x105
lea ecx, [esp + 0x14]
call fcn.00404c40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.00404c70
test bl, bl
je 0x40cda3
mov eax, dword [0x4809e4]
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.004041a0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cde0
call fcn.00406900
test eax, eax
je 0x40cdd0
mov edx, dword [eax]
push 0
push str.Failed_to_create_a_temporary_file_name
mov ecx, eax
call dword [edx + 8]
push eax
call fcn.00442240
add esp, 4
jmp 0x40ce4f
mov eax, str.Failed_to_create_a_temporary_file_name
push eax
call fcn.00442240
add esp, 4
jmp 0x40ce4f
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40ce4f
cmp dword [esi], 0xffffffff
jne 0x40ce4f
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x10]
push edi
push ecx
mov byte [edi], al
call fcn.0040cf00
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40ce17
mov ecx, esi
call fcn.004158e0
mov dword [esi], edi
mov byte [esi + 4], 0
jmp 0x40ce4f
call fcn.00406900
test eax, eax
je 0x40ce30
mov edx, dword [eax]
push 0
push str.Failed_to_open_temporary_file.
mov ecx, eax
call dword [edx + 8]
jmp 0x40ce35
mov eax, str.Failed_to_open_temporary_file.
push eax
call fcn.00442240
mov eax, dword [0x4809e4]
add esp, 4
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.004041a0
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ce68
mov ecx, dword [0x49cadc]
mov dword [esi], ecx
jmp 0x40ce76
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x40ce76
inc eax
mov dword [ecx - 0xc], eax
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
mov byte [esp + 0x28], 2
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x40ce9e
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40ce9e
call fcn.00403dc0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40cebe
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40cebe
call fcn.00403dc0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x28], 0
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40cedd
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40cedd
call fcn.00403dc0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret