Function at 0x100a36d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10277b10
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10314008]
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 ebx, ecx
mov dword [ebp - 0x20], ebx
lea edi, [ebx + 4]
mov dword [ebp - 0x24], 0
mov esi, edi
mov dword [ebp - 0x24], esi
test esi, esi
je 0x100a3720
mov eax, dword [esi]
test eax, eax
je 0x100a3720
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x18], 0
jne 0x100a3984
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.100a41e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0
je 0x100a3978
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100a4bc0
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 4
add ebx, 8
lea eax, [ebp - 0x18]
cmp eax, ebx
je 0x100a3791
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebx + 4], eax
jmp 0x100a3794
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x100a395b
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], 0
nop dword [eax]
mov ecx, dword [ebp - 0x20]
cmp byte [ecx], 0
jne 0x100a3827
cmp eax, 0xffffffff
jne 0x100a3830
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x100a393e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], edx
cmp edx, 0xa
jb 0x100a37d0
cmp eax, 0xffffffff
je 0x100a393e
test eax, eax
je 0x100a393e
test esi, esi
je 0x100a384e
mov eax, dword [esi]
test eax, eax
je 0x100a3849
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 0x24], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 9
mov edx, ecx
lea ecx, [ebp - 0x18]
call fcn.100b0da0
push ecx
lea ecx, [ebp - 0x54]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 0xa
push 2
push 0
push 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x30]
call fcn.100706a0
mov edx, eax
call fcn.10070690
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x100a38cb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
call fcn.100706b0
push 0
mov edx, dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.1006ff60
push eax
push edx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100a391b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x100a38e6
mov eax, dword [edi]
test eax, eax
je 0x100a38e6
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx]
push ecx
push dword [ecx]
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.100a4c80
mov byte [ebp - 4], 0xa
test edi, edi
je 0x100a391b
mov eax, dword [edi]
test eax, eax
je 0x100a3914
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.1006ff70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.1006ff70
jmp 0x100a395b
lea eax, [ebp - 0x18]
cmp ebx, eax
je 0x100a395b
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.100a4650
mov byte [ebp - 4], 1
push 0x54
push dword [ebp - 0x18]
call fcn.1025b427
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100a39a3
mov eax, dword [esi]
test eax, eax
je 0x100a399c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], 0
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.1025b3e6
mov esp, ebp
pop ebp
ret