Function at 0x1000b330
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f1af
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10052670]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], 0
call fcn.1000ae40
mov word [ebp - 0x46], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x46]
push ecx
call fcn.1000af00
add esp, 8
movzx edx, al
test edx, edx
je 0x1000b3a1
lea eax, [ebp + 8]
push eax
call fcn.1000b7d0
add esp, 4
jmp 0x1000b7a8
mov ecx, dword [ebp - 0x94]
call fcn.1000c410
test eax, eax
je 0x1000b3f4
mov ecx, dword [ebp - 0x94]
call fcn.1000c410
mov esi, eax
mov ecx, dword [ebp - 0x94]
call fcn.1000c490
cmp esi, eax
jae 0x1000b3f4
lea ecx, [ebp + 8]
push ecx
call fcn.1000b0c0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x94]
call fcn.1000c5c0
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x1000b7a8
mov edx, dword [ebp - 0x94]
cmp dword [edx + 0x54], 0
jne 0x1000b40a
call fcn.1000ae40
jmp 0x1000b7a8
mov ecx, dword [ebp - 0x94]
call fcn.1000cb00
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x44], 0
jne 0x1000b474
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x54]
push edx
lea eax, [ebp + 8]
push eax
call fcn.1000b0c0
add esp, 4
movzx ecx, ax
push ecx
call fcn.1000b850
add esp, 8
movzx edx, al
test edx, edx
je 0x1000b457
mov ax, word [ebp + 8]
mov word [ebp - 0x96], ax
jmp 0x1000b463
call fcn.1000ae40
mov word [ebp - 0x96], ax
mov ax, word [ebp - 0x96]
jmp 0x1000b7a8
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.1000b0c0
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.10004f10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.100051f0
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa0]
call fcn.10005c70
mov esi, eax
lea ecx, [ebp - 0x40]
call fcn.10003640
add esi, eax
push esi
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x40]
call fcn.100051f0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa8]
call fcn.10005c70
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x16]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x94]
mov ecx, dword [edx + 0x44]
call fcn.1000b810
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.10004ee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10004ee0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jl 0x1000b770
cmp dword [ebp - 0xac], 1
jle 0x1000b57a
cmp dword [ebp - 0xac], 3
je 0x1000b713
jmp 0x1000b770
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100051f0
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb4]
call fcn.10005c70
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.10004ee0
cmp dword [ebp - 0x44], 0
jbe 0x1000b627
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 1
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x40]
call fcn.100051f0
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x90]
or ecx, 1
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.10005c70
push eax
call fcn.10014ad0
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x1000b627
mov dword [ebp - 0xc0], 1
jmp 0x1000b631
mov dword [ebp - 0xc0], 0
mov dl, byte [ebp - 0xc0]
mov byte [ebp - 0x71], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x90]
and eax, 1
je 0x1000b65b
and dword [ebp - 0x90], 0xfffffffe
lea ecx, [ebp - 0x80]
call fcn.10004ee0
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x1000b68a
call fcn.1000ae40
mov word [ebp - 0x82], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100035c0
mov ax, word [ebp - 0x82]
jmp 0x1000b7a8
mov edx, dword [ebp - 0x94]
mov byte [edx + 0x4a], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
cmp eax, ecx
je 0x1000b6c4
mov dx, word [ebp + 8]
mov word [ebp - 0x84], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100035c0
mov ax, word [ebp - 0x84]
jmp 0x1000b7a8
cmp dword [ebp - 0x44], 0
jbe 0x1000b6cc
jmp 0x1000b70e
lea ecx, [ebp - 0x40]
call fcn.10003640
cmp eax, 0x20
jae 0x1000b6e7
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.10004fc0
jmp 0x1000b70e
call fcn.1000ae40
mov word [ebp - 0x86], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100035c0
mov ax, word [ebp - 0x86]
jmp 0x1000b7a8
jmp 0x1000b794
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x54]
push ecx
movzx edx, word [ebp - 0x18]
push edx
call fcn.1000b850
add esp, 8
movzx eax, al
test eax, eax
je 0x1000b73e
mov cx, word [ebp + 8]
mov word [ebp - 0xc2], cx
jmp 0x1000b74a
call fcn.1000ae40
mov word [ebp - 0xc2], ax
mov dx, word [ebp - 0xc2]
mov word [ebp - 0x88], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100035c0
mov ax, word [ebp - 0x88]
jmp 0x1000b7a8
call fcn.1000ae40
mov word [ebp - 0x8a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100035c0
mov ax, word [ebp - 0x8a]
jmp 0x1000b7a8
jmp 0x1000b49e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000ecf0
mov esp, ebp
pop ebp
ret 4