Function at 0x1035870
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x1035ba0
mov eax, dword [esi + 0x1042c]
cmp eax, ebx
je 0x1035ba0
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x964], ebx
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xc], edx
call fcn.01031740
movzx ecx, word [edi + 0x11a]
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x984], ecx
movzx eax, word [edi + 0x118]
mov ecx, dword [esi + 0x1042c]
mov dword [ecx + 0x988], eax
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x968], ebx
cmp word [edi + 0x118], bx
je 0x1035915
mov ebx, dword [edi + 0x1c]
push 0x100c760
push ebx
call fcn.0102c710
test eax, eax
je 0x1035928
push 0x100c758
push ebx
call fcn.0102c710
test eax, eax
je 0x1035928
xor ebx, ebx
mov eax, dword [esi + 0x1042c]
mov ecx, 1
mov dword [eax + 0x968], ecx
jmp 0x103592f
mov ecx, 1
xor ebx, ebx
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x974], ebx
cmp word [edi + 0x118], 2
jb 0x103597c
mov ebx, dword [edi + 0x2c]
push 0x100c750
push ebx
call fcn.0102c710
test eax, eax
je 0x103598a
push 0x100c748
push ebx
call fcn.0102c710
test eax, eax
je 0x103598a
push 0x100c740
push ebx
call fcn.0102c710
test eax, eax
je 0x103598a
mov ecx, 1
xor ebx, ebx
mov eax, dword [esi + 0x1042c]
mov dword [eax + 0x974], ecx
jmp 0x1035991
mov ecx, 1
xor ebx, ebx
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x978], ebx
cmp word [edi + 0x118], 2
jb 0x10359cb
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x24]
test eax, 0x20000000
jne 0x10359bf
test eax, 0x40000000
je 0x10359bf
test al, 0x40
jne 0x10359cb
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x978], ecx
mov eax, dword [esi + 0x1042c]
mov dword [eax + 0x980], ebx
cmp word [edi + 0x118], cx
jb 0x1035a18
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 0x24]
test al, 0x20
je 0x1035a0c
test eax, 0x20000000
je 0x1035a0c
test eax, 0x40000000
je 0x1035a0c
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
je 0x1035a0c
test al, al
jns 0x1035a18
mov eax, dword [esi + 0x1042c]
mov dword [eax + 0x980], ecx
mov edx, dword [esi + 0x1042c]
mov dword [edx + 0x970], ebx
cmp word [edi + 0x118], bx
jbe 0x1035a44
mov eax, dword [edi + 0x1c]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0x10]
je 0x1035a44
mov eax, dword [esi + 0x1042c]
mov dword [eax + 0x970], ecx
cmp word [edi + 0x11a], 3
mov edx, dword [esi + 0x1042c]
sbb ecx, ecx
neg ecx
mov dword [edx + 0x96c], ecx
mov edx, dword [esi + 0x1042c]
mov ax, 0x60
cmp ax, word [edi + 0x11a]
mov dword [ebp - 8], ebx
sbb ecx, ecx
neg ecx
xor eax, eax
mov dword [edx + 0x97c], ecx
cmp ax, word [edi + 0x118]
jae 0x1035b9f
mov dword [ebp - 4], ebx
lea ebx, [edi + 0x1c]
jmp 0x1035a94
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x1042c]
mov eax, dword [ebx]
mov edx, dword [ebp - 4]
lea esi, [edx + ecx + 0x98c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, dword [edi]
mov dword [ebp - 0x14], esi
add ecx, dword [ebx + 8]
cmp ecx, dword [edi + 4]
ja 0x1035b7f
mov edx, dword [ebx + 8]
push edx
push eax
call fcn.01032160
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x24]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], edx
test ecx, ecx
je 0x1035b18
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor edx, edx
div ecx
test edx, edx
je 0x1035b18
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1042c]
mov dword [edx + 0x964], 1
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
push 0
push edi
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0x10], eax
call fcn.01031790
test edi, edi
je 0x1035b4d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1035b4d
test eax, eax
jne 0x1035b4d
push edi
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.010318a0
mov eax, dword [ebp - 0xa8]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x20], ecx
lea edi, [esi + 0x24]
mov ecx, 8
lea esi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
add edi, 0x44
mov ecx, 0x10
lea esi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
movzx edx, word [edi + 0x118]
add dword [ebp - 4], 0x84
inc eax
add ebx, 0x10
cmp eax, edx
mov dword [ebp - 8], eax
jl 0x1035a91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8