Function at 0x1003b310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101ae960]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x220], ecx
xor bl, bl
mov dword [ebp - 0x210], 0
test ecx, ecx
je 0x1003b88e
cmp dword [ebp + 0xc], esi
je 0x1003b88e
mov eax, dword [ecx + 8]
add eax, 0xfffffff7
push edi
lea edi, [ecx + 0x18]
cmp eax, 3
ja case.default.0x1003b360
jmp dword [eax*4 + 0x1003b8a0]
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003b360
mov ecx, edi
add edi, 0x1c
push esi
push edi
push str._s__d.krn7
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add eax, dword [ecx + 8]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [ebp - 0x218], ecx
call fcn.10074a45
push esi
push edi
push str._s__d.gen7
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b433
mov edi, edi
push 0x10090c8c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b431
push eax
call fcn.1007440a
push esi
push edi
push str._s__d.krn7
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10074a45
push esi
push edi
push str._s__d.gen7
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x2c
inc esi
jmp 0x1003b3d0
mov bl, 1
push 0x10091c54
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b47b
mov eax, dword [ebp - 0x218]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.1007576b
push dword [ebp - 0x210]
call fcn.1007440a
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
inc eax
add edi, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b376
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10072374
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003b360
nop
mov ecx, edi
add edi, 0x1c
push esi
push edi
push str._s__d.krn75
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add eax, dword [ecx + 8]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [ebp - 0x21c], ecx
call fcn.10074a45
push esi
push edi
push str._s__d.gen75
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b583
jmp 0x1003b520
push 0x10090c8c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b581
push eax
call fcn.1007440a
push esi
push edi
push str._s__d.krn75
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10074a45
push esi
push edi
push str._s__d.gen75
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x2c
inc esi
jmp 0x1003b520
mov bl, 1
push 0x10091c54
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b5cb
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.1007576b
push dword [ebp - 0x210]
call fcn.1007440a
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
inc eax
add edi, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b4c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10072374
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003b360
nop
mov ecx, edi
add edi, 0x1c
push esi
push edi
push str._s__d.krn8
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add eax, dword [ecx + 8]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [ebp - 0x21c], ecx
call fcn.10074a45
push esi
push edi
push str._s__d.gen8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b6d3
jmp 0x1003b670
push 0x10090c8c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b6d1
push eax
call fcn.1007440a
push esi
push edi
push str._s__d.krn8
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10074a45
push esi
push edi
push str._s__d.gen8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x2c
inc esi
jmp 0x1003b670
mov bl, 1
push 0x10091c54
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b71b
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.1007576b
push dword [ebp - 0x210]
call fcn.1007440a
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
inc eax
add edi, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b610
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10072374
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x214], esi
cmp dword [ecx + 0x10], esi
jbe case.default.0x1003b360
nop
mov ecx, edi
add edi, 0x1c
push esi
push edi
push str._s__d.krn9
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add eax, dword [ecx + 8]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [ebp - 0x21c], ecx
call fcn.10074a45
push esi
push edi
push str._s__d.gen9
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x28
inc esi
test bl, bl
jne 0x1003b823
jmp 0x1003b7c0
push 0x10090c8c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1003b821
push eax
call fcn.1007440a
push esi
push edi
push str._s__d.krn9
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10074a45
push esi
push edi
push str._s__d.gen9
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10074a45
add esp, 0x2c
inc esi
jmp 0x1003b7c0
mov bl, 1
push 0x10091c54
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100748aa
mov ecx, dword [ebp - 0x210]
add esp, 0xc
test ecx, ecx
je 0x1003b86b
mov eax, dword [ebp - 0x21c]
push ecx
push dword [eax + 0xc]
add edi, dword [eax + 4]
push 1
push edi
call fcn.1007576b
push dword [ebp - 0x210]
call fcn.1007440a
add esp, 0x14
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
inc eax
add edi, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
cmp eax, dword [ecx + 0x10]
jb 0x1003b760
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10072374
mov esp, ebp
pop ebp
ret 8