Function at 0x100b6a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012ec18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10185630]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x10185630]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x100b6e09
cmp byte [ecx + 0x41], 0
je 0x100b6e09
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x100b6df7
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 8
cmp ecx, 0x10
jae 0x100b6aaa
lea eax, [esp + 0x20]
mov byte [eax + 8], 0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, edi
cmp ecx, 0x10
jb 0x100b6be9
mov ebx, eax
mov dword [esp + 0x14], ebx
test eax, eax
je 0x100b6af7
mov edx, eax
cmp ecx, 0x10
jae 0x100b6ade
lea edx, [esp + 0x20]
cmp edx, ebx
ja 0x100b6af7
mov edx, eax
cmp ecx, 0x10
jae 0x100b6aed
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add esi, edx
cmp ebx, esi
jbe 0x100b6b04
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffc
je 0x100b6b2f
mov edx, eax
cmp ecx, 0x10
jae 0x100b6b18
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, esi
cmp ebx, edx
jb 0x100b6b2f
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp ecx, 0x10
jb 0x100b6bf6
mov esi, eax
test eax, eax
je 0x100b6b6a
mov edx, eax
cmp ecx, 0x10
jae 0x100b6b4d
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x100b6b6a
mov edx, eax
cmp ecx, 0x10
jae 0x100b6b5c
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
mov ebx, dword [esp + 0x14]
cmp esi, edx
jbe 0x100b6b77
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffc
je 0x100b6b98
cmp ecx, 0x10
jae 0x100b6b89
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x100b6b98
call fcn.10101abb
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x100b6bff
sub eax, 1
je 0x100b6c07
sub eax, 2
je 0x100b6dd5
cmp dword [esp + 0x34], 0x10
jb 0x100b6df7
mov eax, dword [esp + 0x20]
push eax
call fcn.10101749
add esp, 4
xor al, al
jmp 0x100b6e0b
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x100b6ad3
lea esi, [esp + 0x20]
jmp 0x100b6b42
mov eax, dword [esp + 0x10]
mov byte [eax + 0x41], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, 0x10
jb 0x100b6daa
mov esi, eax
test eax, eax
je 0x100b6c42
mov edx, eax
cmp ecx, 0x10
jae 0x100b6c29
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x100b6c42
mov edx, eax
cmp ecx, 0x10
jae 0x100b6c38
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jbe 0x100b6c4f
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffc
je 0x100b6c7a
mov edx, eax
cmp ecx, 0x10
jae 0x100b6c63
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jb 0x100b6c7a
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x100b6d0b
cmp ecx, 0x10
jb 0x100b6db3
mov esi, eax
test eax, eax
je 0x100b6cb9
mov edx, eax
cmp ecx, 0x10
jae 0x100b6ca0
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x100b6cb9
mov edx, eax
cmp ecx, 0x10
jae 0x100b6caf
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
cmp esi, edx
jbe 0x100b6cc6
call fcn.10101abb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffc
je 0x100b6ce7
cmp ecx, 0x10
jae 0x100b6cd8
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x100b6ce7
call fcn.10101abb
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.101061b1
add esp, 0x10
cmp edi, eax
jne 0x100b6de3
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x41], 0
je 0x100b6dfb
test edi, edi
jne 0x100b6ac0
or edx, 0xffffffff
sub edx, dword [esp + 0x30]
cmp edx, 8
ja 0x100b6d3a
call fcn.101004cc
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add esi, 8
cmp esi, 0xfffffffe
jbe 0x100b6d53
call fcn.101004cc
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, esi
jae 0x100b6dbc
mov eax, dword [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.10001dbb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
test esi, esi
jbe 0x100b6ac0
cmp ecx, 0x10
mov ecx, eax
jae 0x100b6d81
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x30]
xor eax, eax
add ecx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
jae 0x100b6da1
lea eax, [esp + 0x20]
mov byte [esi + eax], 0
jmp 0x100b6ab6
lea esi, [esp + 0x20]
jmp 0x100b6c1e
lea esi, [esp + 0x20]
jmp 0x100b6c95
test esi, esi
jne 0x100b6d70
mov dword [esp + 0x30], esi
cmp ecx, 0x10
jae 0x100b6dcd
lea eax, [esp + 0x20]
mov byte [eax], 0
jmp 0x100b6ab6
cmp dword [esp + 0x34], 0x10
jb 0x100b6e09
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x100b6e01
cmp dword [esp + 0x34], 0x10
jb 0x100b6df7
mov edx, dword [esp + 0x20]
push edx
call fcn.10101749
add esp, 4
xor al, al
jmp 0x100b6e0b
cmp ecx, 0x10
jb 0x100b6e09
push eax
call fcn.10101749
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10105d73
mov esp, ebp
pop ebp
ret