Function at 0x100076c0
Capabilities:
Check mutex on windows
Create thread
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x158], edi
mov edx, dword [ebp + 8]
mov esi, 0xa
cmp dword [ebp + 0x10], esi
mov eax, dword [ebp + 0xc]
cmovle esi, dword [ebp + 0x10]
cmp byte [edx], 0
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x10007748
xor ecx, ecx
jmp 0x10007759
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007750
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.100017d0
lea edx, [ebp - 0x12c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.10006fa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x100077a0
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10001ca0
cmp dword [ebp - 0x130], 8
lea eax, [ebp - 0x144]
push 0
cmovae eax, dword [ebp - 0x144]
mov ecx, edi
push 0
push 0
push eax
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.10008ac0
test al, al
je 0x100077fa
lea eax, [ebp - 0x150]
mov ecx, edi
push eax
call fcn.10008390
test al, al
jne 0x1000783a
mov dword [edi + 0x28], 4
xor bl, bl
mov ecx, dword [ebp - 0x130]
cmp ecx, 8
jb 0x1000781a
inc ecx
push ecx
push dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
call fcn.10009440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x10]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10007851
push eax
call ebx
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10007862
push eax
call ebx
mov dword [edi + 0xc], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x10007873
push eax
call ebx
mov dword [edi + 8], 0
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1006fa00
push dword [ebp - 0x14c]
lea eax, [ebp - 0x114]
push 0x100bafcc
push 0x104
push eax
call fcn.10001100
add esp, 0x1c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov eax, dword [ebp - 0x150]
xor bl, bl
test eax, eax
je 0x100077fc
xor edx, edx
mov ebx, 1
div esi
mov dword [ebp - 0x160], eax
cmp esi, ebx
jb 0x1000799f
lea eax, [edi + 0x2c]
xor edi, edi
mov dword [ebp - 0x154], eax
push 0x21c
call fcn.1006c273
push 0x21c
mov esi, eax
push 0
push esi
call fcn.1006fa00
push dword [ebp - 0x15c]
mov dword [ebp - 0x164], esi
push 0x100bafcc
push 0x104
push esi
call fcn.10001100
push ebx
lea eax, [ebp - 0x114]
push eax
push str._s__d.temp
lea eax, [esi + 0x104]
push 0x104
push eax
call fcn.10001100
mov ecx, dword [ebp - 0x150]
add esp, 0x34
mov edx, dword [ebp - 0x160]
sub ecx, edi
mov byte [esi + 0x218], 0
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], edi
cmp ecx, edx
jbe 0x1000796e
lea eax, [edx + edx]
cmp ecx, eax
jae 0x1000796e
mov dword [esi + 0x214], ecx
jmp 0x10007974
mov dword [esi + 0x214], edx
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x164]
add edi, dword [esi + 0x214]
push eax
call fcn.10008d40
inc ebx
cmp ebx, dword [ebp - 0x148]
jbe 0x100078e4
mov edi, dword [ebp - 0x158]
mov ebx, dword [ebp - 0x148]
xor esi, esi
test ebx, ebx
je 0x100079da
nop dword [eax + eax]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x2c]
sub eax, ecx
sar eax, 2
cmp eax, esi
jbe 0x10007a25
push 0
push 0
push dword [ecx + esi*4]
push 0x10008a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, ebx
jb 0x100079b0
push 0x100baf51
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x14c]
mov dword [0x100ffe18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x154], ebx
cmp ebx, 0xffffffff
jne 0x10007a2f
mov dword [edi + 0x28], 7
jmp 0x100077fa
push str.invalid_vector_T__subscript
call fcn.1006b18c
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push dword [ebp - 0x150]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push ebx
call esi
push 0xffffffffffffffff
push dword [0x100ffe18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x2c]
cmp esi, dword [edi + 0x30]
je 0x10007b6b
nop dword [eax]
mov eax, dword [esi]
cmp byte [eax + 0x218], 0
jne 0x10007a88
add esi, 4
cmp esi, dword [edi + 0x30]
jne 0x10007a70
jmp 0x10007b6b
push 0
push 0
mov dword [ebp - 0x148], 0
push dword [eax + 0x20c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 1
add eax, 0x104
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi]
mov dword [ebp - 0x14c], eax
mov eax, dword [ecx + 0x214]
push eax
mov dword [ebp - 0x158], eax
call fcn.1006c2b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10007af6
push dword [ebp - 0x158]
push 0
push ebx
call fcn.1006fa00
add esp, 0xc
jmp 0x10007af8
xor ebx, ebx
push 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [esi]
push dword [eax + 0x214]
push ebx
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x10007b27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [esi]
push dword [eax + 0x214]
push ebx
mov ebx, dword [ebp - 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
add eax, 0x104
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x30]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.1006da90
add esp, 0xc
add dword [edi + 0x30], 0xfffffffc
push dword [0x100ffe18]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x2c]
test eax, 0xfffffffc
jne 0x10007a52
test ebx, ebx
je 0x10007b9b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x100077fc