Function at 0x1001f630
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1012a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101b441c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x60]
mov esi, ecx
test eax, eax
je 0x1001f918
push eax
lea ecx, [esp + 0x1c]
call fcn.10035b40
push 0x101388e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], 0
call fcn.100361b0
test edi, edi
je 0x1001f6c3
mov eax, dword [edi]
push eax
lea edx, [esp + 0x2c]
lea ecx, [eax + 1]
push 0x101388dc
push edx
mov dword [edi], ecx
call fcn.100af189
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.100361b0
push str..raw
lea ecx, [esp + 0x1c]
call fcn.100361b0
push 0x101386d8
lea ecx, [esp + 0x24]
call fcn.10035b40
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.10036190
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1001f6ff
mov eax, 0x10131865
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0
push eax
mov eax, dword [esp + 0x60]
push eax
push ecx
push ebp
mov ecx, esi
call edx
lea eax, [esp + 0x18]
push eax
call fcn.10036430
add esp, 4
test al, al
jne 0x1001f887
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1001f738
mov eax, 0x10131865
push 0x101339d8
push eax
call fcn.100b1398
mov edi, eax
xor ebp, ebp
add esp, 8
cmp edi, ebp
je 0x1001f829
mov eax, dword [esi + 0xc]
cmp eax, 0xe
je 0x1001f797
cmp eax, 0x1c
je 0x1001f797
mov edx, dword [esi]
mov edx, dword [edx + 0xa8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebp
call edx
lea ecx, [esp + 0x14]
call fcn.10001070
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x1001f81b
mov esi, dword [esi + 0x1c]
push edi
push esi
push 1
jmp 0x1001f812
mov eax, dword [esi]
mov eax, dword [eax + 0xb0]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x18], ebp
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test al, al
je 0x1001f7d0
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x1001f7d0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x1001f81b
mov eax, dword [esi + 0x1c]
push 2
push eax
push ecx
mov ecx, dword [0x101b026c]
push ecx
lea edx, [esp + 0x24]
push 1
push edx
call fcn.10028fd0
add esp, 0x18
lea ecx, [esp + 0x14]
call fcn.10001070
mov eax, dword [esp + 0x10]
mov dword [esi + 0x28], 1
mov esi, dword [esi + 0x1c]
push edi
shr esi, 1
push esi
push 2
push eax
call fcn.100b1a6a
add esp, 0x10
push edi
call fcn.100b1074
add esp, 4
jmp 0x1001f8f7
call fcn.10037680
mov esi, eax
lea ecx, [esi + 0x14]
call fcn.10035670
cmp dword [esi + 0xc], ebp
je 0x1001f84a
lea ecx, [esi + 0x10]
call fcn.10035670
mov esi, dword [esi + 4]
jmp 0x1001f84d
mov esi, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push str.Warning:_cant_open_output_file_for_pixel_data:
push esi
call fcn.10002d50
add esp, 8
push eax
call fcn.100362e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10002f60
mov ecx, esi
call fcn.10002ba0
call fcn.10037680
mov esi, eax
cmp dword [esi + 0xc], ebp
jmp 0x1001f8e5
call fcn.10037680
mov esi, eax
lea ecx, [esi + 0x14]
call fcn.10035670
cmp dword [esi + 0xc], 0
je 0x1001f8a9
lea ecx, [esi + 0x10]
call fcn.10035670
mov esi, dword [esi + 4]
jmp 0x1001f8ac
mov esi, dword [esi + 8]
lea edx, [esp + 0x18]
push edx
push str.Warning:_output_file_for_pixel_data_already_exists:
push esi
call fcn.10002d50
add esp, 8
push eax
call fcn.100362e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10002f60
mov ecx, esi
call fcn.10002ba0
call fcn.10037680
mov esi, eax
cmp dword [esi + 0xc], 0
je 0x1001f8ef
lea ecx, [esi + 0x10]
call fcn.100356c0
lea ecx, [esi + 0x14]
call fcn.100356c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0
call fcn.100359a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.100359a0
jmp 0x1001f92d
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edi
push 0
push eax
push ecx
push ebp
mov ecx, esi
call fcn.1001f2b0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100aefaf
add esp, 0x3c
ret 0x14