Function at 0x1300f670
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x13032e68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1303de70]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1303de70]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x54]
cmp ebx, 0xffffffff
mov edx, ecx
mov dword [esp + 0x18], edx
jne 0x1300f6b8
xor eax, eax
jmp 0x1300fa1f
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
xor esi, esi
cmp ecx, esi
je 0x1300f6e4
mov eax, dword [edx + 0x34]
mov edi, dword [eax]
add edi, ecx
cmp ecx, edi
jae 0x1300f6e4
add dword [eax], 0xffffffff
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x1300fa1f
mov eax, dword [edx + 0x4c]
cmp eax, esi
je 0x1300fa1c
cmp dword [edx + 0x3c], esi
jne 0x1300f711
push eax
movsx eax, bl
push eax
call fcn.1301cb43
add esp, 8
cmp eax, 0xffffffff
je 0x1300fa1c
mov eax, ebx
jmp 0x1300fa1f
mov ecx, 0xf
mov dword [esp + 0x3c], ecx
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x28], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], esi
mov byte [esp + 0x14], bl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
jae 0x1300f742
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x1300f998
test eax, eax
mov ebp, eax
je 0x1300f785
cmp edx, 0x10
mov ecx, eax
jae 0x1300f770
lea ecx, [esp + 0x28]
cmp ecx, ebp
ja 0x1300f785
cmp edx, 0x10
mov ecx, eax
jae 0x1300f77f
lea ecx, [esp + 0x28]
add ecx, ebx
cmp ebp, ecx
jbe 0x1300f796
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x1300f7c1
cmp edx, 0x10
mov ecx, eax
jae 0x1300f7aa
lea ecx, [esp + 0x28]
add ecx, ebx
cmp ebp, ecx
jb 0x1300f7c1
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
mov edi, ebx
jb 0x1300f9a1
test eax, eax
mov esi, eax
je 0x1300f7f2
cmp edx, 0x10
mov ecx, eax
jae 0x1300f7dd
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x1300f7f2
cmp edx, 0x10
mov ecx, eax
jae 0x1300f7ec
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jbe 0x1300f803
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x1300f820
cmp edx, 0x10
jae 0x1300f815
lea eax, [esp + 0x28]
add eax, ebx
cmp esi, eax
jb 0x1300f820
call fcn.1301bfa6
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
add ebp, edi
push ebp
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
test eax, eax
jl 0x1300fa0b
cmp eax, 1
jg 0x1300f9bc
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
mov eax, dword [esp + 0x28]
jb 0x1300f9aa
test eax, eax
mov esi, eax
je 0x1300f896
cmp edx, 0x10
mov ecx, eax
jae 0x1300f87d
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x1300f896
cmp edx, 0x10
mov ecx, eax
jae 0x1300f88c
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
jbe 0x1300f8a7
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x1300f8d2
cmp edx, 0x10
mov ecx, eax
jae 0x1300f8bb
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jb 0x1300f8d2
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
sub edi, esi
je 0x1300f963
cmp edx, 0x10
jb 0x1300f9b3
test eax, eax
mov esi, eax
je 0x1300f90d
cmp edx, 0x10
mov ecx, eax
jae 0x1300f8f8
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x1300f90d
cmp edx, 0x10
mov ecx, eax
jae 0x1300f907
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jbe 0x1300f91e
call fcn.1301bfa6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x1300f93b
cmp edx, 0x10
jae 0x1300f930
lea eax, [esp + 0x28]
add eax, ebx
cmp esi, eax
jb 0x1300f93b
call fcn.1301bfa6
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.1301d06f
add esp, 0x10
cmp edi, eax
jne 0x1300fa0b
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x41], 1
lea ecx, [esp + 0x14]
cmp dword [esp + 0x20], ecx
jne 0x1300f9f4
test edi, edi
ja 0x1300f756
cmp ebx, 0x20
jae 0x1300fa0b
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.130060f0
jmp 0x1300f74a
lea ebp, [esp + 0x28]
jmp 0x1300f765
lea esi, [esp + 0x28]
jmp 0x1300f7d2
lea esi, [esp + 0x28]
jmp 0x1300f872
lea esi, [esp + 0x28]
jmp 0x1300f8ed
cmp eax, 3
jne 0x1300fa0b
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.1300ec60
add esp, 8
test al, al
je 0x1300f9dc
mov esi, dword [esp + 0x54]
jmp 0x1300f9df
or esi, 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.130043e0
mov eax, esi
jmp 0x1300fa1f
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.130043e0
mov eax, dword [esp + 0x54]
jmp 0x1300fa1f
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.130043e0
or eax, 0xffffffff
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1301b81a
add esp, 0x3c
ret 4