Function at 0x100b5a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012eca8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10185630]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x10185630]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, ecx
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
jne 0x100b5a8c
xor eax, eax
jmp 0x100b5ea6
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x100b5ab5
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x100b5ab5
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x100b5ea6
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x100b5ea3
cmp dword [edx + 0x3c], 0
jne 0x100b5ae3
push eax
movsx eax, bl
push eax
call fcn.10106439
add esp, 8
cmp eax, 0xffffffff
je 0x100b5ea3
mov eax, ebx
jmp 0x100b5ea6
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x10], bl
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
cmp ecx, 0x10
jae 0x100b5b10
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x100b5deb
mov esi, eax
mov dword [esp + 0x18], esi
test eax, eax
je 0x100b5b5b
mov edx, eax
cmp ecx, 0x10
jae 0x100b5b46
lea edx, [esp + 0x28]
cmp edx, esi
ja 0x100b5b5b
mov edx, eax
cmp ecx, 0x10
jae 0x100b5b55
lea edx, [esp + 0x28]
add edx, edi
cmp esi, edx
jbe 0x100b5b6c
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x100b5b97
mov edx, eax
cmp ecx, 0x10
jae 0x100b5b80
lea edx, [esp + 0x28]
add edx, edi
cmp esi, edx
jb 0x100b5b97
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebx, edi
cmp ecx, 0x10
jb 0x100b5df8
mov esi, eax
test eax, eax
je 0x100b5bc8
mov edx, eax
cmp ecx, 0x10
jae 0x100b5bb3
lea edx, [esp + 0x28]
cmp edx, esi
ja 0x100b5bc8
mov edx, eax
cmp ecx, 0x10
jae 0x100b5bc2
lea edx, [esp + 0x28]
add edx, edi
cmp esi, edx
jbe 0x100b5bd9
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x100b5bf6
cmp ecx, 0x10
jae 0x100b5beb
lea eax, [esp + 0x28]
add eax, edi
cmp esi, eax
jb 0x100b5bf6
call fcn.10101abb
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
call edx
test eax, eax
jl 0x100b5e8f
cmp eax, 1
jg 0x100b5e2c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x100b5e01
mov esi, eax
test eax, eax
je 0x100b5c70
mov edx, eax
cmp ecx, 0x10
jae 0x100b5c57
lea edx, [esp + 0x28]
cmp edx, esi
ja 0x100b5c70
mov edx, eax
cmp ecx, 0x10
jae 0x100b5c66
lea edx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add edx, edi
cmp esi, edx
jbe 0x100b5c81
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x100b5cac
mov edx, eax
cmp ecx, 0x10
jae 0x100b5c95
lea edx, [esp + 0x28]
add edx, edi
cmp esi, edx
jb 0x100b5cac
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
sub ebx, esi
je 0x100b5d3d
cmp ecx, 0x10
jb 0x100b5e0a
mov esi, eax
test eax, eax
je 0x100b5ce7
mov edx, eax
cmp ecx, 0x10
jae 0x100b5cd2
lea edx, [esp + 0x28]
cmp edx, esi
ja 0x100b5ce7
mov edx, eax
cmp ecx, 0x10
jae 0x100b5ce1
lea edx, [esp + 0x28]
add edx, edi
cmp esi, edx
jbe 0x100b5cf8
call fcn.10101abb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x100b5d15
cmp ecx, 0x10
jae 0x100b5d0a
lea eax, [esp + 0x28]
add eax, edi
cmp esi, eax
jb 0x100b5d15
call fcn.10101abb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push ebx
push 1
push esi
call fcn.101061b1
add esp, 0x10
cmp ebx, eax
jne 0x100b5e66
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov byte [edx + 0x41], 1
lea edx, [esp + 0x10]
cmp dword [esp + 0x1c], edx
jne 0x100b5e74
test ebx, ebx
ja 0x100b5b28
cmp edi, 0x20
jae 0x100b5e87
or edx, 0xffffffff
sub edx, edi
cmp edx, 8
ja 0x100b5d7f
call fcn.101004cc
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea esi, [edi + 8]
cmp esi, 0xfffffffe
jbe 0x100b5d98
call fcn.101004cc
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
cmp ecx, esi
jae 0x100b5e13
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.10001dbb
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
test esi, esi
jbe 0x100b5b28
cmp ecx, 0x10
mov ecx, eax
jae 0x100b5dc6
lea ecx, [esp + 0x28]
xor eax, eax
add ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], esi
jae 0x100b5de2
lea eax, [esp + 0x28]
mov byte [esi + eax], 0
jmp 0x100b5b1c
lea esi, [esp + 0x28]
mov dword [esp + 0x18], esi
jmp 0x100b5b3b
lea esi, [esp + 0x28]
jmp 0x100b5ba8
lea esi, [esp + 0x28]
jmp 0x100b5c4c
lea esi, [esp + 0x28]
jmp 0x100b5cc7
test esi, esi
jne 0x100b5db5
mov dword [esp + 0x38], esi
cmp ecx, 0x10
jae 0x100b5e24
lea eax, [esp + 0x28]
mov byte [eax], 0
jmp 0x100b5b1c
cmp eax, 3
jne 0x100b5e8f
mov eax, dword [edi + 0x4c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.100b5270
add esp, 8
test al, al
je 0x100b5e4b
mov esi, dword [ebp + 8]
jmp 0x100b5e4e
or esi, 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x100b5e62
mov edx, dword [esp + 0x28]
push edx
call fcn.10101749
add esp, 4
mov eax, esi
jmp 0x100b5ea6
cmp dword [esp + 0x3c], 0x10
jb 0x100b5ea3
mov eax, dword [esp + 0x28]
push eax
jmp 0x100b5e9b
cmp ecx, 0x10
jb 0x100b5e82
push eax
call fcn.10101749
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x100b5ea6
cmp ecx, 0x10
jb 0x100b5ea3
push eax
jmp 0x100b5e9b
cmp dword [esp + 0x3c], 0x10
jb 0x100b5ea3
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10101749
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10105d73
mov esp, ebp
pop ebp
ret 4