Function at 0x10002ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10048040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10050200]
push ebx
push esi
push edi
test eax, eax
je 0x10002d99
mov ecx, dword [ebp + 0xc]
cmp eax, 1
lea eax, [ebp + 0x10]
push eax
jne 0x10002af8
call fcn.100026b0
mov esi, eax
jmp 0x10002b00
call fcn.100026b0
lea esi, [eax + 1]
add esp, 4
push esi
call fcn.1001a866
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1001c960
add esp, 0xc
lea eax, [ebp + 0x10]
mov edx, esi
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
call fcn.10002670
mov eax, dword [0x10050200]
add esp, 0x10
cmp eax, 1
jne 0x10002bf5
push 0x1004e4b4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push 0
push 0x40000000
push 4
push 0
push 2
push 0x40000000
push 0x1004f2d0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002d85
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10002be9
mov dword [ebp - 0x214], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x224]
movlpd qword [ebp - 0x224], xmm0
push eax
push 0
push esi
push edi
push ebx
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x218], 0xffffffff
mov byte [edi + esi - 1], 0xa
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x228]
call esi
jmp 0x10002d85
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002d85
cmp eax, 2
jne 0x10002d90
push 0x1004e4b4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp esi, 1
jne 0x10002ca5
push 0xc
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x10002c8c
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1001c960
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call esi
push eax
push str._r_nSetConsoleTextAttribute_Failed__Error:__lu_n
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10002650
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003c30c
call fcn.100025a0
add esp, 8
push edi
push 0x1003c314
call fcn.100025f0
add esp, 8
jmp 0x10002d2d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x1003c314
call fcn.100025f0
add esp, 8
jmp 0x10002d2d
cmp esi, 2
jne 0x10002d15
push 9
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x10002d15
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1001c960
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call esi
push eax
push str._r_nSetConsoleTextAttribute_Failed__Error:__lu_n
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10002650
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003c30c
call fcn.100025a0
push edi
push 0x1003c314
call fcn.100025f0
add esp, 0x10
jmp 0x10002d2d
push edi
push 0x1003c314
call fcn.100025f0
add esp, 8
test esi, esi
je 0x10002d85
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x10002d85
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1001c960
add esp, 0xc
call esi
push eax
push str._r_nSetConsoleTextAttribute_Failed__Error:__lu_n
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10002650
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003c30c
call fcn.100025a0
add esp, 8
push 0x1004e4b4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push edi
call fcn.1001a709
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a6fb
mov esp, ebp
pop ebp
ret