Function at 0x10032970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014334b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1030e040]
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 esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10032b81
cmp eax, 0xffffffff
je 0x10032b81
mov ebx, dword [esi + 0xc]
push ebx
mov dword [ebp - 0x13c], ebx
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x100329d6
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [ebx + 0x2c]
cmp eax, 0x7fffffff
jne 0x100329ec
dec eax
push 6
mov dword [ebx + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x138]
push 0x10c
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x128]
mov dword [ebp - method.IWXMVM::Components::Camera.virtual_0], 0x10172cf4
mov dword [ebp - 0x134], 0
add esp, 0xc
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - fcn.1000e780], vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], 0xfa
mov byte [ebp - 4], 1
lea edx, [ebp - 0x138]
mov ecx, dword [esi + 0x14]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esi + 0x10], 0
je 0x10032b3f
mov eax, dword [edi + 0x1c]
cmp dword [edi + 0x20], eax
jbe 0x10032b3f
test eax, eax
je 0x10032aa1
push 0
push 0
push eax
push dword [ebp - 0x134]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [edi + 8]
movzx eax, word [esi + eax*2 + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10032ac6
mov dword [ebp - 0x14], 7
jmp 0x10032ae8
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
and ecx, 0xfff0
movzx eax, ax
or ecx, eax
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
cmp ecx, edx
jbe 0x10032b0b
mov eax, dword [ebp - 0x134]
sub ecx, edx
push 0
push 0
push ecx
add eax, edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x14]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [edi + 0x20]
mov ecx, dword [ebp - 0x130]
cmp ecx, edx
jbe 0x10032b61
mov eax, dword [ebp - 0x134]
sub ecx, edx
push 0
push 0
push ecx
add eax, edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x10032b61
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.10011b60
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
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.1013cfec
mov esp, ebp
pop ebp
ret 4