Function at 0x76636a2a
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x76666130]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp edx, ecx
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [eax], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], ecx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebx], ecx
jne 0x76636b57
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x76636c40
lea eax, [ebp - 0x108]
push eax
push 0
push 0x76636cac
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x76636c40
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x220], eax
je 0x76636c40
push 0
lea eax, [ebp - 0x22c]
push eax
push dword [edi]
push dword [edi + 4]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x76636c40
mov eax, dword [ebp - 0x22c]
cmp eax, dword [edi]
je 0x76636b1e
push 0x80004005
jmp 0x76636c3a
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x220], 0
test eax, eax
je 0x76636c40
lea eax, [ebp - 0x108]
push eax
call fcn.766134ce
test eax, eax
mov dword [ebp - 0x224], eax
je 0x76636c40
xor ecx, ecx
jmp 0x76636b5d
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x21c]
push eax
push ecx
push dword [ebp - 0x224]
call sym.CRYPT32.dll_CryptSIPRetrieveSubjectGuid
test eax, eax
je 0x76636c35
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x24c], 0x1c
call sym.CRYPT32.dll_CryptSIPLoad
test eax, eax
je 0x76636c35
push 0x14
pop ecx
xor eax, eax
lea edi, [ebp - 0x29c]
rep stosd dword es:[edi], eax
or dword [ebp - 0x294], 0xffffffff
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x224]
push 0
push esi
mov dword [ebp - 0x290], eax
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x26c], eax
push ebx
lea eax, [ebp - 0x29c]
push eax
mov dword [ebp - 0x29c], 0x50
call dword [ebp - 0x244]
mov eax, dword [esi]
test eax, eax
je 0x76636c35
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
jne 0x76636c1f
push 0x8007000e
jmp 0x76636c3a
push eax
push esi
push 0
push ebx
lea eax, [ebp - 0x29c]
push eax
call dword [ebp - 0x244]
test eax, eax
jne 0x76636c59
push 0x80092009
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x228]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x76636c5c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], edi
jmp 0x76636c5c
xor edi, edi
inc edi
cmp dword [ebp - 0x220], 0xffffffff
je 0x76636c7a
cmp dword [ebp - 0x220], 0
je 0x76636c7a
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 0
jne 0x76636c99
push dword [ebp - 0x224]
call fcn.76612a81
push dword [ebp - 0x224]
call fcn.765e40a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.765e4260
leave
ret 0x14