Function at 0x10029520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e824d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x102f8384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edi, dword [eax + 0xc]
test edi, edi
je 0x10029567
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029556
sub ecx, edx
sar ecx, 1
jmp 0x1002957b
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x10029575
mov edi, 0x102e61a8
jmp 0x1002957b
mov edi, dword [eax + 0x1c]
shr ecx, 1
dec ecx
mov dword [ebp - 0x30], vtable.CVolCommonBaseWithMemManager.0
lea ebx, [ecx + ecx]
mov dword [ebp - 0x30], vtable.CVolObject.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
sub eax, esi
cmp eax, 2
jl 0x100295ef
mov eax, dword [ebp - 0x24]
mov ecx, 0xfeff
mov word [esi + eax], cx
mov esi, dword [ebp - 0x1c]
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x10029653
lea eax, [esi + 2]
cmp eax, esi
jne 0x100295fb
mov eax, dword [ebp - 0x24]
jmp 0x10029647
test eax, eax
jne 0x1002963e
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10029625
mov eax, dword [ebp - 0x30]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolWrapperObject.virtual_12
jne 0x10029620
mov ecx, 0x102fbb28
call fcn.100283a0
jmp 0x10029625
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x10029647
push eax
lea ecx, [ebp - 0x30]
call fcn.100277d0
mov ecx, 0xfeff
mov word [eax + esi], cx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sub eax, esi
cmp eax, ebx
jl 0x100296e6
cmp ebx, 2
jne 0x10029685
test edi, edi
jne 0x1002966d
xor ecx, ecx
jmp 0x10029670
movzx ecx, word [edi]
mov eax, dword [ebp - 0x24]
mov word [esi + eax], cx
mov esi, dword [ebp - 0x1c]
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x10029714
cmp ebx, 4
jne 0x100296b3
test edi, edi
jne 0x100296a0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [esi + eax], ecx
mov esi, dword [ebp - 0x1c]
add esi, ebx
mov dword [ebp - 0x1c], esi
jmp 0x10029714
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi]
mov dword [esi + eax], ecx
mov esi, dword [ebp - 0x1c]
add esi, 4
mov dword [ebp - 0x1c], esi
jmp 0x10029714
cmp ebx, 8
jne 0x100296e6
test edi, edi
jne 0x100296cc
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x100296d1
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x24]
mov dword [esi + eax], ecx
mov dword [esi + eax + 4], edx
mov esi, dword [ebp - 0x1c]
add esi, 8
mov dword [ebp - 0x1c], esi
jmp 0x10029714
test ebx, ebx
jle 0x10029714
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.10027830
add eax, esi
push ebx
test edi, edi
je 0x10029706
push edi
push eax
call fcn.101c0150
jmp 0x1002970e
push 0
push eax
call fcn.101c06d0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x10029758
cmp word [eax], 0
je 0x10029758
test esi, esi
js 0x10029758
push 0x102e7524
push eax
call fcn.101ca914
mov edi, eax
add esp, 8
test edi, edi
je 0x10029758
push edi
push esi
push 1
push ebx
call fcn.101c73bd
xor ebx, ebx
cmp eax, esi
push edi
sete bl
call fcn.101c3d2f
add esp, 0x14
jmp 0x1002975a
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x10029795
mov eax, dword [ebp - 0x30]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolWrapperObject.virtual_12
jne 0x10029790
mov ecx, 0x102fbb28
call fcn.100283a0
jmp 0x10029795
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov dword [ebp - 0x30], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc