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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bef9a
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x100fbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10101ec8]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10103924]
cmp eax, dword [esi + 4]
jle 0x1006fb93
push 0x10103924
call fcn.1009289a
add esp, 4
cmp dword [0x10103924], 0xffffffff
jne 0x1006fb93
push 0x10103928
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100c17d0
call fcn.10092c75
push 0x10103924
call fcn.10092850
add esp, 8
push 0x10103928
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10103940]
cmp eax, dword [esi + 4]
jle 0x1006fbe2
push 0x10103940
call fcn.1009289a
add esp, 4
cmp dword [0x10103940], 0xffffffff
jne 0x1006fbe2
push 0x100c17b0
mov dword [0x10103944], 0
call fcn.10092c75
push 0x10103940
call fcn.10092850
add esp, 8
mov eax, dword [0x10103944]
test eax, eax
jne 0x100702e8
lea ecx, [ebp - 0x2b0]
call fcn.10072fa0
mov esi, eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10094470
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x250], 0
movups xmmword [ebp - 0x264], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006fc52
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.1000db40
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x264]
call fcn.1000cfe0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x1006fcce
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fcc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704a9
push ecx
push edx
call fcn.10092592
add esp, 8
push 9
push 0x100e2c2c
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 2
call fcn.1000c560
mov dword [ebp - 0x288], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x298], xmm0
mov dword [ebp - 0x284], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x298], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x288], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x100e2510
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 3
call fcn.1000c560
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x2c8]
call fcn.1002a600
push 4
push str..log
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 5
call fcn.1000c560
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24c]
call fcn.1000d8c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x1006fe23
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fe19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2b4]
cmp ecx, 8
jb 0x1006fe67
mov edx, dword [ebp - 0x2c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fe5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x1006fec8
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006febe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x284]
cmp ecx, 8
jb 0x1006ff0c
mov edx, dword [ebp - 0x298]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ff02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2cc]
cmp ecx, 8
jb 0x1006ff6d
mov edx, dword [ebp - 0x2e0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ff63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x29c]
cmp ecx, 8
jb 0x1006ffce
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ffc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704ae
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x29c], 7
movups xmmword [ebp - 0x264], xmm0
mov word [ebp - 0x2b0], ax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
push ecx
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x264]
call fcn.10071a10
push eax
call fcn.1006fa90
mov ecx, eax
call fcn.100159c0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x10070074
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007006a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704b3
push ecx
push edx
call fcn.10092592
add esp, 8
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10103944], eax
cmp eax, 0xffffffff
je 0x1007029c
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
push str._Y._m._d._H:_M:_S
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x234], xmm0
call fcn.1000c260
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x27c]
call fcn.10074840
push 9
push str.DateTime
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1000c970
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2b0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x264]
call fcn.1000d8c0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x12
call fcn.1006fb10
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x10070197
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007018d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704b8
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
cmp ecx, 8
jb 0x100701f8
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100701ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704b8
push ecx
push edx
call fcn.10092592
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x1007023c
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10070232
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704b8
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
cmp ecx, 0x10
jb 0x10070297
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007028d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704b8
push ecx
push edx
call fcn.10092592
add esp, 8
mov eax, dword [0x10103944]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x238]
cmp ecx, 8
jb 0x100702e8
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100702d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704bd
push ecx
push edx
call fcn.10092592
mov eax, dword [0x10103944]
add esp, 8
cmp eax, 0xffffffff
je 0x10070483
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.1006df10
mov ecx, eax
mov dword [ebp - 4], 0x13
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 2
jb 0x10070344
lea eax, [edx + 2]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x10070334
mov eax, dword [ecx]
mov esi, 0xa0d
mov word [eax + edx], si
mov byte [eax + edx + 2], 0
jmp 0x10070361
push 2
push 0x100e20ec
mov byte [ebp - 0x280], 0
push dword [ebp - 0x280]
push 2
call fcn.1000add0
mov ecx, eax
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x26c], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x234]
call fcn.1000b980
mov ecx, dword [ebp - 0x268]
cmp ecx, 0x10
jb 0x100703d9
mov edx, dword [ebp - 0x27c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100703cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704c2
push ecx
push edx
call fcn.10092592
add esp, 8
mov ecx, dword [ebp - 0x250]
cmp ecx, 0x10
jb 0x10070413
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10070409
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704c2
push ecx
push edx
call fcn.10092592
add esp, 8
cmp dword [ebp - 0x220], 0x10
lea ecx, [ebp - 0x21c]
push 0
push ecx
push dword [ebp - 0x224]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x21c], 0
cmovae eax, dword [ebp - 0x234]
push eax
push dword [0x10103944]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x220]
cmp ecx, 0x10
jb 0x10070483
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10070479
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100704c7
push ecx
push edx
call fcn.10092592
add esp, 8
push 0x10103928
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10092561
mov esp, ebp
pop ebp
ret
call fcn.10097635
call fcn.10097635
call fcn.10097635
call fcn.10097635
call fcn.10097635
call fcn.10097635
call fcn.10097635
int3