Function at 0x100059e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d2b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x10005a15
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10005a21
mov al, 1
jmp 0x10005c59
mov dword [ebp - 0x84], 8
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xffffffff
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x34]
jne 0x10005a5e
mov dword [ebp - 0x24], 1
jmp 0x10005a65
mov dword [ebp - 0x24], 0
mov dl, byte [ebp - 0x24]
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10005a7a
xor al, al
jmp 0x10005c59
push 0
push 8
lea ecx, [ebp - 0x80]
call fcn.10002f80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10004f10
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x80]
call fcn.10004f10
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
call eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10005b28
cmp dword [ebp - 0x20], 1
je 0x10005b2f
cmp dword [ebp - 0x20], 3
je 0x10005bf4
jmp 0x10005c17
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x3d], 0
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x80]
call fcn.10004f10
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], edx
je 0x10005bb2
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x80]
call fcn.10004f10
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x68]
push eax
call fcn.10018ac4
add esp, 0x10
cmp dword [ebp - 0x1c], eax
je 0x10005bb2
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x12]
jmp 0x10005c59
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10005be0
mov byte [ebp - 0x13], 1
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x13]
jmp 0x10005c59
cmp dword [ebp - 0x1c], 0
jne 0x10005bf2
push 0
push 8
lea ecx, [ebp - 0x80]
call fcn.10005350
jmp 0x10005c3a
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x14]
jmp 0x10005c59
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
jmp 0x10005c59
jmp 0x10005a8d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret