Function at 0x1001d2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c655
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100d2070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], 0
call fcn.10001750
mov word [ebp - 0x46], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x46]
push ecx
call fcn.10001730
add esp, 8
movzx edx, al
test edx, edx
je 0x1001d349
lea eax, [ebp + 8]
push eax
call fcn.1001d240
add esp, 4
jmp 0x1001d6c1
mov ecx, dword [ebp - 0x30]
call fcn.1001d8a0
test eax, eax
je 0x1001d390
mov ecx, dword [ebp - 0x30]
call fcn.1001d8a0
mov esi, eax
mov ecx, dword [ebp - 0x30]
call fcn.1001d0f0
cmp esi, eax
jae 0x1001d390
lea ecx, [ebp + 8]
push ecx
call fcn.1003b6c0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x30]
call fcn.10013b70
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x1001d6c1
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x4c], 0
jne 0x1001d3a3
call fcn.10001750
jmp 0x1001d6c1
mov ecx, dword [ebp - 0x30]
call fcn.1001c9f0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
jne 0x1001d3fb
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.1003b6c0
add esp, 4
movzx ecx, ax
push ecx
call fcn.1001b6d0
add esp, 8
movzx edx, al
test edx, edx
je 0x1001d3e4
mov ax, word [ebp + 8]
mov word [ebp - 0x3a], ax
jmp 0x1001d3ed
call fcn.10001750
mov word [ebp - 0x3a], ax
mov ax, word [ebp - 0x3a]
jmp 0x1001d6c1
mov dword [ebp - 0x88], 8
lea ecx, [ebp + 8]
push ecx
call fcn.1003b6c0
add esp, 4
mov word [ebp - 0x38], ax
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.10014d20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001cac0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.1001bef0
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.1001aaf0
add esi, eax
push esi
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1001cac0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.1001bef0
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x36]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.1001d290
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10023db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.10023db0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x1001d68f
cmp dword [ebp - 0x54], 1
jle 0x1001d4e9
cmp dword [ebp - 0x54], 3
je 0x1001d644
jmp 0x1001d68f
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1001cac0
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
call fcn.1001bef0
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.10023db0
cmp dword [ebp - 0x44], 0
jbe 0x1001d57b
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 1
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1001cac0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x80]
call fcn.1001bef0
push eax
call fcn.1005db10
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x1001d57b
mov dword [ebp - 0x58], 1
jmp 0x1001d582
mov dword [ebp - 0x58], 0
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x31], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x1001d5a6
and dword [ebp - 0x40], 0xfffffffe
lea ecx, [ebp - 0xb8]
call fcn.10023db0
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x1001d5cf
call fcn.10001750
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011e70
mov ax, word [ebp - 0x48]
jmp 0x1001d6c1
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 1
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x84], eax
je 0x1001d601
mov cx, word [ebp + 8]
mov word [ebp - 0x4a], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011e70
mov ax, word [ebp - 0x4a]
jmp 0x1001d6c1
cmp dword [ebp - 0x44], 0
jbe 0x1001d609
jmp 0x1001d642
lea ecx, [ebp - 0x2c]
call fcn.1001aaf0
cmp eax, 0x20
jae 0x1001d624
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.10018990
jmp 0x1001d642
call fcn.10001750
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011e70
mov ax, word [ebp - 0x4c]
jmp 0x1001d6c1
jmp 0x1001d6ad
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, word [ebp - 0x38]
push ecx
call fcn.1001b6d0
add esp, 8
movzx edx, al
test edx, edx
je 0x1001d669
mov ax, word [ebp + 8]
mov word [ebp - 0x3c], ax
jmp 0x1001d672
call fcn.10001750
mov word [ebp - 0x3c], ax
mov cx, word [ebp - 0x3c]
mov word [ebp - 0x4e], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011e70
mov ax, word [ebp - 0x4e]
jmp 0x1001d6c1
call fcn.10001750
mov word [ebp - 0x50], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011e70
mov ax, word [ebp - 0x50]
jmp 0x1001d6c1
jmp 0x1001d428
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044f60
mov esp, ebp
pop ebp
ret 4