Function at 0x1000b110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1005d85c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp eax, dword [ebp + 8]
sete cl
movzx edx, cl
test edx, edx
je 0x1000b18b
cmp dword [ebp + 8], 0xffffffff
je 0x1000b16b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
jmp 0x1000b17b
or ecx, 0xffffffff
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0x124], ecx
mov eax, dword [ebp - 0x124]
jmp 0x1000b5ed
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0
je 0x1000b233
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 0x24]
mov ecx, dword [edx]
add ecx, dword [eax]
cmp dword [ebp - 0x80], ecx
jae 0x1000b233
mov dl, byte [ebp + 8]
mov byte [ebp - 0x81], dl
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x34]
mov dword [ecx], edx
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x128]
mov dl, byte [ebp - 0x81]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x1000b5ed
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x4c], 0
jne 0x1000b24c
or eax, 0xffffffff
jmp 0x1000b5ed
mov ecx, dword [ebp - 0x120]
cmp dword [ecx + 0x3c], 0
jne 0x1000b2bb
mov dl, byte [ebp + 8]
mov byte [ebp - 0x82], dl
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
movsx eax, byte [ebp - 0x82]
push eax
call fcn.1002e0cf
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx edx, cl
test edx, edx
je 0x1000b2a1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
jmp 0x1000b2ab
mov dword [ebp - 0x12c], 0xffffffff
mov eax, dword [ebp - 0x12c]
jmp 0x1000b5ed
mov dword [ebp - 0x10], 8
mov cl, byte [ebp + 8]
mov byte [ebp - 0x15], cl
lea edx, [ebp - 0x91]
mov dword [ebp - 0x90], edx
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.1000e330
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x10
jb 0x1000b304
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x98], eax
jmp 0x1000b30d
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x98], ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000ffb0
lea ecx, [ebp - 0x4c]
call fcn.1000fc20
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0x24], 0x10
jb 0x1000b348
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xa4], edx
jmp 0x1000b351
lea eax, [ebp - 0x38]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x54]
call fcn.1000ffb0
lea ecx, [ebp - 0x54]
call fcn.1000fc20
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xac], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 0x120]
add edx, 0x44
push edx
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xac]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jl 0x1000b5b6
cmp dword [ebp - 0x130], 1
jle 0x1000b3f0
cmp dword [ebp - 0x130], 3
je 0x1000b542
jmp 0x1000b5b6
cmp dword [ebp - 0x24], 0x10
jb 0x1000b401
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xb0], ecx
jmp 0x1000b40a
lea edx, [ebp - 0x38]
mov dword [ebp - 0xb0], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.1000ffb0
lea ecx, [ebp - 0x5c]
call fcn.1000fc20
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0xb4]
mov dword [ebp - 0x40], edx
je 0x1000b4be
cmp dword [ebp - 0x24], 0x10
jb 0x1000b44e
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xb8], eax
jmp 0x1000b457
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xb8], ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x64]
call fcn.1000ffb0
lea ecx, [ebp - 0x64]
call fcn.1000fc20
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 1
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.1002e042
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x1000b4be
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
mov eax, dword [ebp - 0x68]
jmp 0x1000b5ed
mov edx, dword [ebp - 0x120]
mov byte [edx + 0x41], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15]
cmp eax, ecx
je 0x1000b4f3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
mov eax, dword [ebp - 0x6c]
jmp 0x1000b5ed
cmp dword [ebp - 0x40], 0
jbe 0x1000b4fb
jmp 0x1000b53d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0x20
jae 0x1000b51b
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.1000c3b0
jmp 0x1000b53d
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
mov eax, dword [ebp - 0x70]
jmp 0x1000b5ed
jmp 0x1000b5d5
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0xe0], edx
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xd9], al
mov ecx, dword [ebp - 0xe0]
push ecx
movsx edx, byte [ebp - 0xd9]
push edx
call fcn.1002e0cf
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx edx, cl
test edx, edx
je 0x1000b58b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
jmp 0x1000b595
mov dword [ebp - 0x134], 0xffffffff
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
mov eax, dword [ebp - 0x74]
jmp 0x1000b5ed
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000cb10
mov eax, dword [ebp - 0x78]
jmp 0x1000b5ed
jmp 0x1000b2f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1002c435
mov esp, ebp
pop ebp
ret 4