Function at 0x1301ca20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1310e368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x3c], esi
mov dword [esp + 8], ebx
je 0x1301cd51
cmp byte [ebx + 0x42], 0
je 0x1301cd51
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffff
call edx
movzx eax, ax
cmp ax, 0xffff
jne 0x1301ca7d
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, 0xf
mov dword [esp + 0x28], ecx
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x14], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 8
jae 0x1301caaa
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [esp + 0x34], esi
push ebp
push edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
lea esp, [esp]
cmp edx, 0x10
jb 0x1301cbe4
test eax, eax
mov ebp, eax
je 0x1301caf3
cmp edx, 0x10
mov ecx, eax
jae 0x1301cada
lea ecx, [esp + 0x1c]
cmp ecx, ebp
ja 0x1301caf3
cmp edx, 0x10
mov ecx, eax
jae 0x1301cae9
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jbe 0x1301cb00
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x1301cb2b
cmp edx, 0x10
mov ecx, eax
jae 0x1301cb14
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jb 0x1301cb2b
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
mov edi, dword [esp + 0x2c]
jb 0x1301cbed
test eax, eax
mov esi, eax
je 0x1301cb66
cmp edx, 0x10
mov ecx, eax
jae 0x1301cb49
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x1301cb66
cmp edx, 0x10
mov ecx, eax
jae 0x1301cb58
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0x10]
jbe 0x1301cb73
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x1301cb94
cmp edx, 0x10
jae 0x1301cb85
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x1301cb94
call fcn.130311e1
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
add ebp, edi
push ebp
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x1301cbf6
sub eax, 1
je 0x1301cbfa
sub eax, 2
je 0x1301cd2b
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.13004580
pop edi
pop ebp
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ebp, [esp + 0x1c]
jmp 0x1301cacf
lea esi, [esp + 0x1c]
jmp 0x1301cb3e
mov byte [ebx + 0x42], 0
mov edx, dword [esp + 0x30]
cmp edx, 0x10
mov eax, dword [esp + 0x1c]
jb 0x1301cd19
test eax, eax
mov esi, eax
je 0x1301cc35
cmp edx, 0x10
mov ecx, eax
jae 0x1301cc1c
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x1301cc35
cmp edx, 0x10
mov ecx, eax
jae 0x1301cc2b
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jbe 0x1301cc42
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x1301cc6d
cmp edx, 0x10
mov ecx, eax
jae 0x1301cc56
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jb 0x1301cc6d
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x1301ccfa
cmp edx, 0x10
jb 0x1301cd22
test eax, eax
mov esi, eax
je 0x1301ccac
cmp edx, 0x10
mov ecx, eax
jae 0x1301cc93
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x1301ccac
cmp edx, 0x10
mov ecx, eax
jae 0x1301cca2
lea ecx, [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
add ecx, ebp
cmp esi, ecx
jbe 0x1301ccb9
call fcn.130311e1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x1301ccda
cmp edx, 0x10
jae 0x1301cccb
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x1301ccda
call fcn.130311e1
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.13033484
add esp, 0x10
cmp edi, eax
jne 0x1301cbbe
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x42], 0
je 0x1301cd2b
test edi, edi
jne 0x1301cac0
push edi
push 8
lea ecx, [esp + 0x20]
call fcn.130061e0
jmp 0x1301cab4
lea esi, [esp + 0x1c]
jmp 0x1301cc11
lea esi, [esp + 0x1c]
jmp 0x1301cc88
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.13004580
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x2c]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret