Function at 0x1001e480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc558
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100e70dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
call fcn.100148e0
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.10014860
add esp, 8
movzx edx, al
test edx, edx
je 0x1001e4df
lea eax, [ebp + 8]
push eax
call fcn.10014890
add esp, 4
jmp 0x1001e777
mov ecx, dword [ebp - 0x38]
call fcn.10016eb0
test eax, eax
je 0x1001e523
mov ecx, dword [ebp - 0x38]
call fcn.10016eb0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.10016df0
cmp esi, eax
jae 0x1001e523
lea ecx, [ebp + 8]
push ecx
call fcn.10014840
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.10016ca0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x1001e777
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x1001e536
call fcn.100148e0
jmp 0x1001e777
mov ecx, dword [ebp - 0x38]
call fcn.1001ed30
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x1001e58a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.10014840
add esp, 4
movzx ecx, al
push ecx
call fcn.10018080
add esp, 8
movzx edx, al
test edx, edx
je 0x1001e575
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x1001e57d
call fcn.100148e0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x1001e777
mov dword [ebp - 0x64], 8
lea ecx, [ebp + 8]
push ecx
call fcn.10014840
add esp, 4
mov byte [ebp - 0x12], al
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.100164c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001fb0
mov ecx, eax
call fcn.100021a0
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.10003170
add esi, eax
push esi
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001fb0
mov ecx, eax
call fcn.100021a0
push eax
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x12]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.1001e9e0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x1001e747
cmp dword [ebp - 0x40], 1
jle 0x1001e62b
cmp dword [ebp - 0x40], 3
je 0x1001e702
jmp 0x1001e747
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001fb0
mov ecx, eax
call fcn.100021a0
mov edx, dword [ebp - 0x30]
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x1001e695
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001fb0
mov ecx, eax
call fcn.100021a0
push eax
call fcn.100a1653
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x1001e695
call fcn.100148e0
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b80
mov eax, dword [ebp - 0x50]
jmp 0x1001e777
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x12]
cmp dword [ebp - 0x34], edx
je 0x1001e6c1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b80
mov eax, dword [ebp - 0x54]
jmp 0x1001e777
cmp dword [ebp - 0x3c], 0
jbe 0x1001e6c9
jmp 0x1001e700
lea ecx, [ebp - 0x2c]
call fcn.10003170
cmp eax, 0x20
jae 0x1001e6e4
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.1000f080
jmp 0x1001e700
call fcn.100148e0
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b80
mov eax, dword [ebp - 0x58]
jmp 0x1001e777
jmp 0x1001e763
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
movzx eax, byte [ebp - 0x12]
push eax
call fcn.10018080
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1001e725
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x1001e72d
call fcn.100148e0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b80
mov eax, dword [ebp - 0x5c]
jmp 0x1001e777
call fcn.100148e0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b80
mov eax, dword [ebp - 0x60]
jmp 0x1001e777
jmp 0x1001e5b3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bf25
mov esp, ebp
pop ebp
ret 4