Function at 0x1012cc90
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1012ccf0
movzx eax, word [esi + ecx]
test ax, ax
je 0x1012ccf0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1012ccd0
jmp 0x1012ccf4
test edx, edx
jne 0x1012ccf7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push str..._tempHost
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100d9c10
add esp, 8
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1012cd35
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push edi
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 2
push 0
push 7
push 0x40000000
test eax, eax
je 0x1012cd5f
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x1012cd6c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, eax
test esi, esi
je 0x1012cd7b
push esi
call ebx
test edi, edi
je 0x1012ce99
mov eax, dword [0x1025a718]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], eax
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x218], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1012cdb7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xa
call fcn.10003680
add esp, 4
push 0
test eax, eax
je 0x1012cddf
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push edi
call eax
jmp 0x1012cdf9
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x210], eax
test esi, esi
je 0x1012ce06
push esi
call ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1012ce1c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1012ce2f
call eax
jmp 0x1012ce35
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1012ce3c
push esi
call ebx
cmp dword [ebp - 0x210], 0
je 0x1012ce99
push 1
push dword [ebp + 8]
call fcn.100d9c10
mov edi, dword [ebp + 8]
add esp, 8
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1012ce6b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2a
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1012ce85
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x1012ce92
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test esi, esi
je 0x1012ce99
push esi
call ebx
mov edx, dword [ebp + 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
pop ebx
test eax, eax
jg 0x1012ceb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012ced2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x1012ceeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x18