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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011edfa
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x10159e80]
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 [0x101602d0]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10161fb4]
cmp eax, dword [esi + 4]
jle 0x100cb053
push 0x10161fb4
call fcn.100edcd8
add esp, 4
cmp dword [0x10161fb4], 0xffffffff
jne 0x100cb053
push 0x10161fb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10121650
call fcn.100ee041
push 0x10161fb4
call fcn.100edc87
add esp, 8
push 0x10161fb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10161fd0]
cmp eax, dword [esi + 4]
jle 0x100cb0a2
push 0x10161fd0
call fcn.100edcd8
add esp, 4
cmp dword [0x10161fd0], 0xffffffff
jne 0x100cb0a2
push 0x10121630
mov dword [0x10161fd4], 0
call fcn.100ee041
push 0x10161fd0
call fcn.100edc87
add esp, 8
mov eax, dword [0x10161fd4]
test eax, eax
jne 0x100cb42c
lea ecx, [ebp - 0x2c4]
call fcn.100cd120
mov esi, eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100efb50
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100cb112
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.100023d0
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x230]
call fcn.10005130
lea ecx, [ebp - 0x230]
call fcn.10002530
push 9
push 0x10139340
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 2
call fcn.10002000
mov dword [ebp - 0x26c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x27c], xmm0
mov dword [ebp - 0x268], 0
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
push 1
push 0x101388a4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
call fcn.10002000
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x254], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x294]
call fcn.100293c0
push 4
push str..log
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 5
call fcn.10002000
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24c]
call fcn.100022c0
lea ecx, [ebp - 0x230]
call fcn.10002530
lea ecx, [ebp - 0x294]
call fcn.10002530
lea ecx, [ebp - 0x264]
call fcn.10002530
lea ecx, [ebp - 0x27c]
call fcn.10002530
lea ecx, [ebp - 0x2ac]
call fcn.10002530
lea ecx, [ebp - 0x2c4]
call fcn.10002530
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
movups xmmword [ebp - 0x230], xmm0
mov word [ebp - 0x230], ax
push ecx
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x230]
call fcn.100cc090
push eax
call fcn.100caf40
mov ecx, eax
call fcn.100126c0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xd
call fcn.10002530
cmp dword [ebp - 0x238], 7
lea eax, [ebp - 0x24c]
push 0
cmova 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 [0x10161fd4], eax
cmp eax, 0xffffffff
je 0x100cb415
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
push str._Y._m._d._H:_M:_S
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
call fcn.10003040
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2f4]
call fcn.100ce1b0
push eax
mov edx, str.DateTime
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2dc]
call fcn.100112c0
add esp, 4
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x11
call fcn.100022c0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x12
call fcn.100cafd0
lea ecx, [ebp - 0x264]
call fcn.10002530
lea ecx, [ebp - 0x2dc]
call fcn.10002530
lea ecx, [ebp - 0x2f4]
call fcn.10002530
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x100cb415
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cb40b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb5ae
push ecx
push edx
call fcn.100edbed
add esp, 8
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002530
mov eax, dword [0x10161fd4]
cmp eax, 0xffffffff
je 0x100cb588
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.100c9da0
push 2
push 0x10137500
mov ecx, eax
mov dword [ebp - 4], 0x13
call fcn.10004940
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x230]
call fcn.10002dc0
mov ecx, dword [ebp - 0x238]
cmp ecx, 0xf
jbe 0x100cb4de
mov edx, dword [ebp - 0x24c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cb4d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb5b3
push ecx
push edx
call fcn.100edbed
add esp, 8
mov ecx, dword [ebp - 0x250]
cmp ecx, 0xf
jbe 0x100cb518
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cb50e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb5b3
push ecx
push edx
call fcn.100edbed
add esp, 8
cmp dword [ebp - 0x21c], 0xf
lea ecx, [ebp - 0x234]
push 0
push ecx
push dword [ebp - 0x220]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0
cmova eax, dword [ebp - 0x230]
push eax
push dword [0x10161fd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x100cb588
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cb57e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb5b8
push ecx
push edx
call fcn.100edbed
add esp, 8
push 0x10161fb8
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.100edbdf
mov esp, ebp
pop ebp
ret
call fcn.100f2e4f
call fcn.100f2e4f
call fcn.100f2e4f
int3