Function at 0x10006a92
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1026c5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x102f6d90]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x102f6d90]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
and dword [esp + 0x14], 0
mov ebx, ecx
call fcn.10009af7
mov edi, eax
lea ecx, [ebp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call fcn.10016956
test al, al
je 0x10006b1f
lea eax, [ebp + 8]
push eax
call fcn.10003e8e
pop ecx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.102188c0
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
call fcn.10008078
test eax, eax
je 0x10006b56
mov eax, ebx
call fcn.100080a8
mov esi, eax
mov eax, ebx
call fcn.10008078
cmp eax, esi
jae 0x10006b56
mov ecx, ebx
call fcn.10008125
mov esi, eax
lea eax, [ebp + 8]
call fcn.1000f732
mov byte [esi], al
mov eax, dword [ebp + 8]
jmp 0x10006afc
cmp dword [ebx + 0x54], 0
jne 0x10006b60
mov eax, edi
jmp 0x10006afc
mov esi, ebx
call fcn.10008695
cmp dword [ebx + 0x44], 0
lea eax, [ebp + 8]
jne 0x10006b8b
push dword [ebx + 0x54]
call fcn.1000f732
call fcn.10004b0f
test al, al
mov eax, dword [ebp + 8]
pop ecx
jne 0x10006afc
jmp 0x10006b5c
call fcn.1000f732
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x5c]
push eax
push 8
pop esi
call fcn.100079a4
and dword [esp + 0x88], 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8c], 1
call fcn.10007c94
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x8c], 2
lea esi, [ebx + 0x4c]
call fcn.100087af
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.10005bbd
add edi, eax
push edi
mov edi, dword [esp + 0x2c]
call fcn.100087af
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x26]
push eax
push esi
jmp 0x10006d57
cmp esi, 1
jg 0x10006d8d
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov edi, eax
mov byte [esp + 0x88], 3
call fcn.100087af
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x40]
sub esi, eax
mov byte [esp + 0x88], 0
call fcn.1000772e
test esi, esi
je 0x10006c92
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov byte [esp + 0x88], 4
push dword [ebx + 0x54]
or dword [esp + 0x18], 1
push esi
push 1
mov edi, eax
call fcn.100087af
push eax
call fcn.10220950
add esp, 0x10
mov byte [esp + 0x13], 1
cmp esi, eax
jne 0x10006c97
mov byte [esp + 0x13], 0
and dword [esp + 0x88], 0
test byte [esp + 0x14], 1
je 0x10006cb4
and dword [esp + 0x14], 0xfffffffe
lea edi, [esp + 0x4c]
call fcn.1000772e
cmp byte [esp + 0x13], 0
jne 0x10006da6
lea eax, [esp + 0x12]
mov byte [ebx + 0x49], 1
cmp dword [esp + 0x18], eax
jne 0x10006dc3
test esi, esi
jne 0x10006cf4
lea ecx, [esp + 0x58]
call fcn.10005bbd
cmp eax, 0x20
jae 0x10006da6
push esi
push 8
pop edi
lea esi, [esp + 0x5c]
call fcn.10007b0d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8c], 1
call fcn.10007c94
mov esi, eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x8c], 2
call fcn.100087af
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.10005bbd
add edi, eax
push edi
mov edi, esi
call fcn.100087af
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x26]
push eax
lea eax, [ebx + 0x4c]
push eax
mov ecx, dword [ebx + 0x44]
call fcn.100088ad
lea edi, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.1000772e
lea edi, [esp + 0x34]
mov byte [esp + 0x88], 0
call fcn.1000772e
test esi, esi
jns 0x10006c17
jmp 0x10006da6
cmp esi, 3
jne 0x10006da6
push dword [ebx + 0x54]
mov al, byte [esp + 0x16]
call fcn.10004b0f
mov esi, dword [ebp + 8]
pop ecx
test al, al
jne 0x10006daa
mov esi, dword [esp + 0x1c]
or dword [esp + 0x88], 0xffffffff
lea eax, [esp + 0x58]
push eax
call fcn.10005b3b
mov eax, esi
jmp 0x10006afc
mov esi, dword [ebp + 8]
jmp 0x10006daa