Function at 0x100169a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041996
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x88], esi
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
test esi, esi
jne 0x10016a18
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x10016a0d
test eax, eax
je 0x10016a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x78]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi], 0xffffffff
jmp 0x10016e10
call fcn.10022280
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x10016a28
test ecx, ecx
jne 0x10016a92
push dword [ebp - 0x78]
lea ecx, [ebp - 0x80]
push dword [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.10023150
mov dword [ebp - 0x14], eax
cmp edi, eax
je 0x10016a7f
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [edi]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x10016a71
test eax, eax
je 0x10016a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x80]
cmp eax, 0xffffffff
je 0x10016a92
test eax, eax
je 0x10016a92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.10006950
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x10016b29
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016b1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e2b
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov ecx, esi
mov dword [ebp - 0x90], 0
xor eax, eax
mov dword [ebp - 0x8c], 7
xorps xmm0, xmm0
mov word [ebp - 0xa0], ax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016b60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10004a20
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.1001cdb0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.10004720
push 0x7c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.100047f0
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x90], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call fcn.1001be80
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x10016c31
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016c27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e30
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
cmp ecx, 8
jb 0x10016c75
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016c6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e30
push ecx
push edx
call fcn.1002dd79
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10016cd0
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016cc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e30
push ecx
push edx
call fcn.1002dd79
add esp, 8
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 2
push dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea esi, [ebp - 0x5c]
cmovae esi, dword [ebp - 0x5c]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x10016e35
mov dword [ebp - 0x84], edi
mov byte [ebp - 0x80], 1
push 0
push 0
push 0
mov byte [ebp - 4], 0xa
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10016e44
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10016e56
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016d42
sub ecx, edx
lea eax, [ebp - 0x14]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10016e68
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
xorps xmm0, xmm0
push 0
movups xmmword [ebp - 0x40], xmm0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x10016dc6
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016dbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e7a
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x10016e10
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016e06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e7a
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002db4b
mov esp, ebp
pop ebp
ret
call fcn.10033a4a
call fcn.10033a4a
push str.engine_storage_manager.cpp
mov edx, 0xa3
call fcn.10008fa0
mov ecx, dword [ebp + 4]
mov edx, 0xab
push str.engine_storage_manager.cpp
call fcn.10008fa0
mov ecx, dword [ebp + 4]
mov edx, 0xac
push str.engine_storage_manager.cpp
call fcn.10008fa0
mov ecx, dword [ebp + 4]
mov edx, 0xb1
push str.engine_storage_manager.cpp
call fcn.10008fa0
call fcn.10033a4a
int3