Function at 0x1301cd70
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1310e368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
cmp si, 0xffff
mov edx, ecx
mov dword [esp + 8], edx
jne 0x1301cdaf
xor ax, ax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
push ebx
push edi
xor edi, edi
cmp ecx, edi
je 0x1301cdef
mov eax, dword [edx + 0x34]
mov ebx, dword [eax]
lea ebx, [ecx + ebx*2]
cmp ecx, ebx
jae 0x1301cdef
add dword [eax], 0xffffffff
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
pop edi
lea edx, [ecx + 2]
mov dword [eax], edx
pop ebx
mov word [ecx], si
mov ax, si
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov eax, dword [edx + 0x4c]
cmp eax, edi
jne 0x1301ce0e
pop edi
pop ebx
or ax, 0xffff
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
cmp dword [edx + 0x3c], edi
jne 0x1301ce43
push eax
push esi
call fcn.13032cc6
add esp, 8
cmp ax, 0xffff
movzx eax, si
jne 0x1301d188
pop edi
pop ebx
mov eax, 0xffff
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
movzx eax, si
mov ecx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], eax
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x20], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 8
jae 0x1301ce77
lea eax, [esp + 0x20]
mov byte [eax + 8], 0
mov dword [esp + 0x40], edi
push ebp
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea esp, [esp]
cmp edx, 0x10
jb 0x1301d0d6
test eax, eax
mov ebp, eax
je 0x1301cebf
cmp edx, 0x10
mov ecx, eax
jae 0x1301ceaa
lea ecx, [esp + 0x24]
cmp ecx, ebp
ja 0x1301cebf
cmp edx, 0x10
mov ecx, eax
jae 0x1301ceb9
lea ecx, [esp + 0x24]
add ecx, ebx
cmp ebp, ecx
jbe 0x1301ced0
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffe
je 0x1301cefb
cmp edx, 0x10
mov ecx, eax
jae 0x1301cee4
lea ecx, [esp + 0x24]
add ecx, ebx
cmp ebp, ecx
jb 0x1301cefb
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp edx, 0x10
mov edi, ebx
jb 0x1301d0df
test eax, eax
mov esi, eax
je 0x1301cf2c
cmp edx, 0x10
mov ecx, eax
jae 0x1301cf17
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x1301cf2c
cmp edx, 0x10
mov ecx, eax
jae 0x1301cf26
lea ecx, [esp + 0x24]
add ecx, ebx
cmp esi, ecx
jbe 0x1301cf3d
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffe
je 0x1301cf5a
cmp edx, 0x10
jae 0x1301cf4f
lea eax, [esp + 0x24]
add eax, ebx
cmp esi, eax
jb 0x1301cf5a
call fcn.130311e1
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
add ebp, edi
push ebp
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
test eax, eax
jl 0x1301d172
cmp eax, 1
jg 0x1301d0fa
mov edx, dword [esp + 0x38]
cmp edx, 0x10
mov eax, dword [esp + 0x24]
jb 0x1301d0e8
test eax, eax
mov esi, eax
je 0x1301cfd0
cmp edx, 0x10
mov ecx, eax
jae 0x1301cfb7
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x1301cfd0
cmp edx, 0x10
mov ecx, eax
jae 0x1301cfc6
lea ecx, [esp + 0x24]
mov ebx, dword [esp + 0x34]
add ecx, ebx
cmp esi, ecx
jbe 0x1301cfe1
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffe
je 0x1301d00c
cmp edx, 0x10
mov ecx, eax
jae 0x1301cff5
lea ecx, [esp + 0x24]
add ecx, ebx
cmp esi, ecx
jb 0x1301d00c
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x1301d09d
cmp edx, 0x10
jb 0x1301d0f1
test eax, eax
mov esi, eax
je 0x1301d047
cmp edx, 0x10
mov ecx, eax
jae 0x1301d032
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x1301d047
cmp edx, 0x10
mov ecx, eax
jae 0x1301d041
lea ecx, [esp + 0x24]
add ecx, ebx
cmp esi, ecx
jbe 0x1301d058
call fcn.130311e1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffe
je 0x1301d075
cmp edx, 0x10
jae 0x1301d06a
lea eax, [esp + 0x24]
add eax, ebx
cmp esi, eax
jb 0x1301d075
call fcn.130311e1
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.13033484
add esp, 0x10
cmp edi, eax
jne 0x1301d172
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x42], 1
lea ecx, [esp + 0x10]
cmp dword [esp + 0x1c], ecx
jne 0x1301d147
test edi, edi
ja 0x1301ce90
cmp ebx, 0x20
jae 0x1301d172
push 0
push 8
lea ecx, [esp + 0x28]
call fcn.130061e0
jmp 0x1301ce80
lea ebp, [esp + 0x24]
jmp 0x1301ce9f
lea esi, [esp + 0x24]
jmp 0x1301cf0c
lea esi, [esp + 0x24]
jmp 0x1301cfac
lea esi, [esp + 0x24]
jmp 0x1301d027
cmp eax, 3
jne 0x1301d172
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.1301c290
movzx esi, word [esp + 0x54]
add esp, 8
test al, al
jne 0x1301d11e
mov esi, 0xffff
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.13004580
pop ebp
pop edi
pop ebx
mov ax, si
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.13004580
mov ax, word [esp + 0x4c]
pop ebp
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.13004580
or ax, 0xffff
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4