Function at 0x10002a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1004c1b8]
push ebx
push esi
push edi
test eax, eax
je 0x10002ce9
mov ecx, dword [ebp + 0xc]
cmp eax, 1
lea eax, [ebp + 0x10]
push eax
jne 0x10002a48
call fcn.10002600
mov esi, eax
jmp 0x10002a50
call fcn.10002600
lea esi, [eax + 1]
add esp, 4
push esi
call fcn.100161be
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100182b0
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.100025c0
mov eax, dword [0x1004c1b8]
add esp, 0x10
cmp eax, 1
jne 0x10002b45
push 0x1004a480
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push 0
push 0x40000000
push 4
push 0
push 2
push 0x40000000
push 0x1004b298
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002cd5
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10002b39
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 0x10002cd5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002cd5
cmp eax, 2
jne 0x10002ce0
push 0x1004a480
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp esi, 1
jne 0x10002bf5
push 0xc
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x10002bdc
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100182b0
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.100025a0
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003832c
call fcn.100024f0
add esp, 8
push edi
push 0x10038334
call fcn.10002540
add esp, 8
jmp 0x10002c7d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x10038334
call fcn.10002540
add esp, 8
jmp 0x10002c7d
cmp esi, 2
jne 0x10002c65
push 9
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x10002c65
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100182b0
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.100025a0
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003832c
call fcn.100024f0
push edi
push 0x10038334
call fcn.10002540
add esp, 0x10
jmp 0x10002c7d
push edi
push 0x10038334
call fcn.10002540
add esp, 8
test esi, esi
je 0x10002cd5
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 0x10002cd5
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100182b0
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.100025a0
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push 0x1003832c
call fcn.100024f0
add esp, 8
push 0x1004a480
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push edi
call fcn.10016061
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016053
mov esp, ebp
pop ebp
ret