Function at 0x50fda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6b8f0c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x44], 0
je 0x50fdd3
mov ecx, dword [ebp - 0x9c]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x50fddf
mov al, 1
jmp 0x50fffa
mov dword [ebp - 4], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xffffffff
mov ecx, dword [ebp - 0x34]
xor edx, edx
cmp ecx, dword [ebp - 0x30]
sete dl
movzx eax, dl
test eax, eax
je 0x50fe1e
xor al, al
jmp 0x50fffa
lea ecx, [ebp - 0x51]
mov dword [ebp - 0x50], ecx
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004200f0
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00510010
lea ecx, [ebp - 0x28]
call fcn.0041ff10
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x38], edx
xor eax, eax
jne 0x50fe4d
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x14], 0x10
jb 0x50fe6b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
jmp 0x50fe71
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00510c70
xor ecx, ecx
jne 0x50fe81
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x9c]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x50fee7
cmp dword [ebp - 0xa0], 1
je 0x50fef1
cmp dword [ebp - 0xa0], 3
je 0x50ffbf
jmp 0x50ffd4
mov ecx, dword [ebp - 0x9c]
mov byte [ecx + 0x49], 0
cmp dword [ebp - 0x14], 0x10
jb 0x50feff
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x70], edx
jmp 0x50ff05
lea eax, [ebp - 0x28]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x40]
call fcn.00510c70
xor eax, eax
jne 0x50ff15
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
je 0x50ff88
cmp dword [ebp - 0x14], 0x10
jb 0x50ff32
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
jmp 0x50ff38
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x74]
push edx
lea ecx, [ebp - 0x44]
call fcn.00510c70
xor eax, eax
jne 0x50ff48
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 1
mov edx, dword [ebp - 0x78]
push edx
call fcn.0058186f
add esp, 0x10
cmp dword [ebp - 0x2c], eax
je 0x50ff88
mov byte [ebp - 0x45], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004200f0
mov al, byte [ebp - 0x45]
jmp 0x50fffa
mov eax, dword [ebp - 0x9c]
movzx ecx, byte [eax + 0x49]
test ecx, ecx
jne 0x50ffab
mov byte [ebp - 0x46], 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004200f0
mov al, byte [ebp - 0x46]
jmp 0x50fffa
cmp dword [ebp - 0x2c], 0
jne 0x50ffbd
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0050f810
jmp 0x50ffe9
mov byte [ebp - 0x47], 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004200f0
mov al, byte [ebp - 0x47]
jmp 0x50fffa
mov byte [ebp - 0x48], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004200f0
mov al, byte [ebp - 0x48]
jmp 0x50fffa
jmp 0x50fe3c
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0057d76e
mov esp, ebp
pop ebp
ret