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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x14
call fcn.1007e295
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
cmp dword [0x100afcb2], 0
jne 0x1000afb0
mov eax, 0
jmp 0x1000b3dd
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.1007eaf0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000afe5
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
push 0
push 0x1a
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000b024
push 0x7a
push 0x402069a
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0x100aa915
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002153
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000b048
push ebx
call fcn.1007e29b
add esp, 4
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.1000422e
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000b06e
push ebx
call fcn.1007e29b
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000b082
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
call fcn.1000b421
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000b0a2
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push 4
push 0
push dword [ebp - 0x18]
push 0x10000000
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000b146
push 0x1f3
push 0x402069a
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000b161
cmp dword [ebp - 0xc], 0xffffffff
je 0x1000b161
xor eax, eax
jmp 0x1000b166
mov eax, 1
test eax, eax
je 0x1000b178
mov eax, 0
jmp 0x1000b3dd
push 0
mov ebx, 0x210
call fcn.10080030
add esp, 4
push 0x80000003
push edx
push eax
push 1
mov ebx, 0x168
call fcn.1007ebe0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, 0x100aa928
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10002153
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1000b1ca
push ebx
call fcn.1007e29b
add esp, 4
push dword [ebp + 8]
call fcn.10002153
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 3
call fcn.1000422e
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000b1fe
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1000b20e
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1000b21e
push ebx
call fcn.1007e29b
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x1000b231
mov eax, 0x100aa45a
push eax
push 1
mov ebx, 0x168
call fcn.1007ebe0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1000b257
push ebx
call fcn.1007e29b
add esp, 4
push 0x100aa932
push dword [ebp - 0x34]
push dword [ebp - 8]
mov ecx, 3
call fcn.1000422e
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x1000b282
push ebx
call fcn.1007e29b
add esp, 4
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x38]
push eax
call fcn.1000b78b
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x1000b2ad
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x1000b2bd
push ebx
call fcn.1007e29b
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b2d1
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 0
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000b30c
mov eax, 0x100aa368
push eax
push 1
mov ebx, 0x194
call fcn.1007eb30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000b33a
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1000b364
push 0x42b
push 0x402069a
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000b3a7
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000b39d
push 0x45b
push 0x402069a
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0
jmp 0x1000b3dd
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000b3d3
push 0x4a0
push 0x402069a
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 1
jmp 0x1000b3dd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000b3ee
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000b3fe
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b40e
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4