Function at 0x10010330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d16d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
lea ecx, [ebp - 0x18]
call fcn.10010ef0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 2
lea ecx, [ebp - 0x18]
call fcn.10003f40
push eax
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
call ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x100105a1
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x100103ad
mov ecx, dword [0x100beb94]
call fcn.10046f80
mov dword [ebp - 0x14], eax
jmp 0x100103c1
cmp dword [ebp + 8], 1
jne 0x100103c1
mov ecx, dword [0x100beb94]
call fcn.10046fc0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [0x100beb94]
call fcn.10047640
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [0x100beb94]
call fcn.100477b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.10011050
mov byte [ebp - 4], 3
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0xc8]
call fcn.10011200
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb0]
call fcn.10011190
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.1000e640
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.1000e490
push eax
lea ecx, [ebp - 0x24]
call fcn.1000d1e0
movzx ecx, al
test ecx, ecx
je 0x10010471
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x24]
call fcn.1000d240
add eax, 4
mov ecx, eax
call fcn.10011270
jmp 0x100104b3
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0xfc]
call fcn.10010690
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.10010ec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.100110d0
mov dword [ebp - 0x1c], 0
push 0x1008a090
lea ecx, [ebp - 0x60]
call fcn.10004ae0
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.10057648
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10010530
lea ecx, [ebp - 0x18]
call fcn.1000de70
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
call fcn.1000de70
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
call ecx
sub eax, 1
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
push eax
call fcn.10057999
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10057706
add esp, 4
jmp 0x10010575
lea ecx, [ebp - 0x60]
call fcn.10004ae0
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.10011780
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.10010070
push eax
mov edx, dword [ebp - 0x30]
push edx
push str.Shader_save_error:__d._File:__s_n
mov eax, dword [0x100beb90]
push eax
call fcn.1000fa10
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.1000fe60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.100110f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.1000fe60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10004130
jmp 0x100105cc
mov ecx, dword [ebp + 8]
push ecx
call fcn.10010650
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x44]
push eax
push str._s_shader_disassembler_failed._Error:_0x_08X_n
mov ecx, dword [0x100beb90]
push ecx
call fcn.1000fa10
add esp, 0x10
cmp dword [ebp - 0x20], 0
jl 0x100105db
mov dword [ebp - 0x34], 1
jmp 0x100105e2
mov dword [ebp - 0x34], 0
mov dl, byte [ebp - 0x34]
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10011080
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret