Function at 0x1003af60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor bl, bl
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x210], 0
test ecx, ecx
je 0x1003b4de
cmp dword [ebp + 0xc], esi
je 0x1003b4de
mov eax, dword [ecx + 8]
add eax, 0xfffffff7
push edi
lea edi, [ecx + 0x18]
cmp eax, 3
ja case.default.0x1003afb0
jmp dword [eax*4 + 0x1003b4f0]
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003afb0
mov ecx, edi
push esi
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add edi, 0x1c
add eax, dword [ecx + 0x10]
push edi
add eax, dword [ecx + 8]
push str._s__d.krn7
add eax, dword [ecx + 0xc]
push 0x104
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], ecx
call fcn.100742f9
push esi
push edi
push str._s__d.gen7
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b083
mov edi, edi
push 0x1008fd00
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b081
push eax
call fcn.10073cc2
push esi
push edi
push str._s__d.krn7
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100742f9
push esi
push edi
push str._s__d.gen7
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x2c
inc esi
jmp 0x1003b020
mov bl, 1
push 0x10090cc4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b0cb
mov eax, dword [ebp - 0x218]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.10074fd8
push dword [ebp - 0x210]
call fcn.10073cc2
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
add edi, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003afc6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071c54
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003afb0
nop
mov ecx, edi
push esi
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add edi, 0x1c
add eax, dword [ecx + 0x10]
push edi
add eax, dword [ecx + 8]
push str._s__d.krn75
add eax, dword [ecx + 0xc]
push 0x104
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x21c], ecx
call fcn.100742f9
push esi
push edi
push str._s__d.gen75
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b1d3
jmp 0x1003b170
push 0x1008fd00
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b1d1
push eax
call fcn.10073cc2
push esi
push edi
push str._s__d.krn75
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100742f9
push esi
push edi
push str._s__d.gen75
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x2c
inc esi
jmp 0x1003b170
mov bl, 1
push 0x10090cc4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b21b
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.10074fd8
push dword [ebp - 0x210]
call fcn.10073cc2
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
add edi, dword [ebp - 0x218]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b110
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071c54
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003afb0
nop
mov ecx, edi
push esi
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add edi, 0x1c
add eax, dword [ecx + 0x10]
push edi
add eax, dword [ecx + 8]
push str._s__d.krn8
add eax, dword [ecx + 0xc]
push 0x104
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x21c], ecx
call fcn.100742f9
push esi
push edi
push str._s__d.gen8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b323
jmp 0x1003b2c0
push 0x1008fd00
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b321
push eax
call fcn.10073cc2
push esi
push edi
push str._s__d.krn8
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100742f9
push esi
push edi
push str._s__d.gen8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x2c
inc esi
jmp 0x1003b2c0
mov bl, 1
push 0x10090cc4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b36b
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.10074fd8
push dword [ebp - 0x210]
call fcn.10073cc2
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
add edi, dword [ebp - 0x218]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b260
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071c54
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003afb0
nop
mov ecx, edi
push esi
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add edi, 0x1c
add eax, dword [ecx + 0x10]
push edi
add eax, dword [ecx + 8]
push str._s__d.krn9
add eax, dword [ecx + 0xc]
push 0x104
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x21c], ecx
call fcn.100742f9
push esi
push edi
push str._s__d.gen9
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b473
jmp 0x1003b410
push 0x1008fd00
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b471
push eax
call fcn.10073cc2
push esi
push edi
push str._s__d.krn9
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100742f9
push esi
push edi
push str._s__d.gen9
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100742f9
add esp, 0x2c
inc esi
jmp 0x1003b410
mov bl, 1
push 0x10090cc4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1007415e
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b4bb
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.10074fd8
push dword [ebp - 0x210]
call fcn.10073cc2
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
add edi, dword [ebp - 0x218]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b3b0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10071c54
mov esp, ebp
pop ebp
ret 8