Function at 0x100079f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100147cd
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.100096e0
mov eax, dword [0x1001d040]
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 dword [ebp - 0x14], edx
mov dword [ebp - 0x1034], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
movq qword [ebp - 0x20], xmm0
xor ebx, ebx
mov dword [ebp - 0x1038], eax
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [edx], edi
jbe 0x10007aae
nop dword [eax + eax]
cmp byte [0x1001e8b8], 0
je 0x10007a6f
cmp byte [edi + ecx], 0
je 0x10007aab
add ecx, edi
cmp esi, eax
je 0x10007a85
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1c], esi
jmp 0x10007a9e
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.100084b0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1038], eax
inc edi
cmp edi, dword [edx]
jae 0x10007aab
mov ecx, dword [ebp - 0x1034]
jmp 0x10007a60
mov ebx, dword [ebp - 0x20]
movzx eax, byte [0x1001e8b8]
mov edi, 0
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1034], 0
sub esi, ebx
je 0x10007b1a
push esi
lea ecx, [ebp - 0x1050]
call fcn.10008410
mov edi, dword [ebp - 0x1050]
push esi
push ebx
push edi
call fcn.10009f00
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [ebp - 0x1048]
mov dword [ebp - 0x1034], eax
jmp 0x10007b1c
xor esi, esi
push 0x100d
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.1000a480
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x102d]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x1034]
sub eax, edi
push eax
lea eax, [ebp - 0x1019]
push edi
push eax
call fcn.10009f00
mov eax, dword [ebp - 0x1034]
add esp, 0xc
sub eax, edi
mov dword [ebp - 0x1021], 1
add eax, 0x18
mov word [ebp - 0x1030], ax
mov eax, dword [ebp - 0x103c]
push 0x1001e878
mov dword [ebp - 0x101d], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x102d]
call fcn.10002490
test eax, eax
je 0x10007c27
push 0
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1030]
push eax
push dword [0x1001da70]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1001e890], eax
cmp eax, 0x542
je 0x10007c27
mov eax, dword [0x1001da70]
cmp eax, 0xffffffff
je 0x10007bf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1001da70], 0xffffffff
lea ecx, [ebp - 0x102d]
call fcn.10002490
test eax, eax
je 0x10007c27
push 0
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1030]
push eax
push dword [0x1001da70]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001e878
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10007c5c
sub esi, edi
cmp esi, 0x1000
jb 0x10007c52
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10007ca8
mov edi, ecx
push esi
push edi
call fcn.10008931
add esp, 8
test ebx, ebx
je 0x10007c8c
mov ecx, dword [ebp - 0x1038]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x10007c82
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007ca8
push ecx
push ebx
call fcn.10008931
add esp, 8
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.10008800
mov esp, ebp
pop ebp
ret
call fcn.1000bd1f
int3