Function at 0x1000be60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x1000be84
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10e], 1
jne 0x1000be84
xor eax, eax
jmp 0x1000c5af
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x1000c4a8
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 2
jne 0x1000c025
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x11e]
sub edx, dword [ecx + 0x122]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x2c]
jb 0x1000bf03
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x13a], 0
je 0x1000bf03
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13a]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
jmp 0x1000bea3
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x122]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 2]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x13a], 0
je 0x1000bf78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x122]
add eax, dword [ebp - 8]
add eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x116]
jbe 0x1000bf6d
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x116]
sub ecx, dword [eax + 0x122]
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x1000bf76
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1000bf81
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x1000c019
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
cmp edx, 0x7d00
jae 0x1000bfa6
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
jmp 0x1000bfad
mov dword [ebp - 0x50], 0x7d00
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 2]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.10032210
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jbe 0x1000c00a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x122]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 0x11e], edx
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x24]
je 0x1000c014
jmp 0x1000c019
jmp 0x1000bf81
mov dword [ebp - 8], 0
jmp 0x1000c497
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 1
jne 0x1000c19f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x116]
sub eax, dword [edx + 0x122]
cmp dword [ebp - 8], eax
jb 0x1000c076
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x116]
sub eax, dword [edx + 0x122]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13a]
mov dword [ebp + 8], eax
jmp 0x1000bea3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x11a], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x122]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x11a]
add ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 0x116]
jbe 0x1000c0c5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x116]
sub eax, dword [edx + 0x122]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x11a]
mov dword [ebp - 0x10], eax
jmp 0x1000c0ce
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x1000c193
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
cmp ecx, 0x7d00
jae 0x1000c0f3
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x54], edx
jmp 0x1000c0fa
mov dword [ebp - 0x54], 0x7d00
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x112]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x122]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x11a]
push ecx
call fcn.10031ea0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11a]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [eax + 0x11a], edx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x122]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x11a]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 0x11e]
jbe 0x1000c18e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x122]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x11a]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x11e], edx
jmp 0x1000c0ce
mov dword [ebp - 8], 0
jmp 0x1000c497
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 3
jne 0x1000c48f
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x126]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x1000c2eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x122]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x30]
add eax, dword [edx + 0xc]
cmp ecx, eax
jae 0x1000c2dd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x122]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
cmp ecx, dword [edx + 8]
jbe 0x1000c2dd
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x122]
mov eax, dword [ebp - 0x30]
cmp edx, dword [eax + 8]
jae 0x1000c24c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
sub edx, dword [eax + 0x122]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x122]
mov ecx, dword [ebp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x1000c275
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x122]
mov ecx, dword [ebp - 0x30]
sub eax, dword [ecx + 8]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x122]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x30]
add edx, dword [ecx + 0xc]
cmp eax, edx
jbe 0x1000c2b7
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x122]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
sub eax, dword [ecx + 8]
mov edx, dword [ebp - 0x30]
sub eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x3c]
push edx
call fcn.10031ea0
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x30], edx
jmp 0x1000c1c1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x10]
jl 0x1000c2fe
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x1000c4a8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 2]
or edx, dword [ecx + 6]
jne 0x1000c32e
mov eax, dword [ebp + 8]
push eax
call fcn.1000ae30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000c32e
xor eax, eax
jmp 0x1000c5af
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x11e]
sub eax, dword [edx + 0x122]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x2c]
jb 0x1000c371
mov edx, dword [ebp + 8]
cmp dword [edx + 0x13a], 0
je 0x1000c371
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13a]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
jmp 0x1000bea3
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x122]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 2]
push eax
call fcn.10033a60
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x13a], 0
je 0x1000c3e6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x122]
add ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x116]
jbe 0x1000c3db
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x116]
sub edx, dword [ecx + 0x122]
sub edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1000c3e4
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x1000c3ef
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x1000c486
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d00
jae 0x1000c413
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x5c], ecx
jmp 0x1000c41a
mov dword [ebp - 0x5c], 0x7d00
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 2]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
push eax
call fcn.10032210
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x2c]
jbe 0x1000c477
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x122]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x11e], eax
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x24]
je 0x1000c481
jmp 0x1000c486
jmp 0x1000c3ef
mov dword [ebp - 8], 0
jmp 0x1000c497
mov eax, dword [ebp - 0x14]
jmp 0x1000c5af
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13a]
mov dword [ebp + 8], ecx
jmp 0x1000bea3
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x11a], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jae 0x1000c59d
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x12e], 0
je 0x1000c59d
push 0x13e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x12e]
push ecx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x1000c4fb
mov eax, dword [ebp - 0x14]
jmp 0x1000c5af
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7d00
jae 0x1000c51a
mov dword [ebp - 0x10], 0x7d00
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x12e]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1000c53e
mov eax, dword [ebp - 0x14]
jmp 0x1000c5af
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.1000b360
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x112]
push ecx
call fcn.10031ea0
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x11a]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x11a], eax
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1000b7c0
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x11a], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret