Function at 0x427024
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d4
push ebx
push esi
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x427243
lea eax, [ebx + 0x7c]
push eax
xor esi, esi
push esi
mov dword [ebp + 0x70], eax
push 0x406bc0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x427243
lea eax, [ebx + 0x70]
push eax
push 0x40adec
push esi
push esi
push esi
push esi
mov edi, 0x1012
push edi
push dword [ebp + 0x70]
mov dword [ebp + 0x74], eax
call dword [sym.imp.ole32.dll_StgCreateStorageEx]
cmp eax, esi
jl 0x427248
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
lea ecx, [ebx + 0x74]
push ecx
push edi
push 0
push 0
inc esi
push 0x406b70
mov dword [ebx + 0x78], esi
mov edx, dword [eax]
push eax
mov dword [ebp + 0x6c], ecx
call dword [edx + 0xc]
test eax, eax
jl 0x427248
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov word [ebp - 0x54], 3
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov word [ebp - 0x44], 3
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and word [ebp - 0x2c], 0
mov eax, dword [ebx + 4]
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], 0x3e8
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], 0x3e9
mov word [ebp - 0x34], 0xb
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], 0x3ea
mov eax, dword [eax + 0x60]
test byte [eax + 0x14], 0x20
je 0x427142
push dword [ebx + 0x60]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
jmp 0x42714f
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x1c], 0
push dword [ebx + 0x44]
mov word [ebp - 0x24], 8
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x48], 0x3eb
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x14], 8
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp + 4], si
mov word [ebp - 4], 0xb
lea edi, [ebp + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x456778]
mov word [ebp + 0xc], 0xb
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x50], 0x3ec
mov dword [ebp + 0x58], 0x3ed
xor ebx, ebx
mov word [ebp + 0x14], bx
mov dword [ebp + 0x60], 0x3ee
mov eax, dword [eax + 0xcc]
mov ecx, dword [eax + 0xe0]
xor eax, eax
lea edi, [ebp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ecx, ebx
push 2
setne al
lea edx, [ebp - 0x54]
push edx
movzx ax, al
mov dword [ebp + 0x64], esi
mov esi, dword [ebp + 0x6c]
lea edx, [ebp + 0x2c]
push edx
mov word [ebp + 0x24], ax
mov eax, dword [esi]
push 8
mov word [ebp + 0x1c], 0xb
mov dword [ebp + 0x68], 0x3ef
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x427248
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push 0x40adec
push ebx
push ebx
push ebx
push 4
push 0x20
push dword [ebp + 0x70]
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_StgOpenStorageEx]
jmp 0x427248
mov eax, 0x80004005
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret