Function at 0x103102a0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x104d9790]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push 0x60
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xb4]
push 0
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
call fcn.1033be70
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0xb0], esi
movzx eax, word [eax]
cmp ax, 0x40
jle 0x1031032c
push 0x40
push 0x1042134c
push esi
call fcn.102b6530
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.103362c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
and ecx, 0x40
mov dword [esp + 0x7c], ecx
je 0x1031033f
mov eax, 1
jmp 0x10310340
cwde
mov ecx, dword [esi]
imul esi, eax, 0x58
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
add esi, 0x3f
and esi, 0xfffffff8
lea edx, [esi + 0x264]
call fcn.102b4530
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x1031037e
lea ecx, [esi + 0x264]
push ecx
push 0
push edx
call fcn.1033be70
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
je 0x103103a5
mov ecx, eax
call fcn.102b42e0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.103362c6
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], eax
call fcn.102cfd70
mov ecx, dword [esp + 0x18]
push 0x104
mov dword [ecx + 0x18], eax
lea eax, [ecx + esi]
mov dword [esp + 0xb8], eax
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov word [ecx + 0xa], ax
mov eax, dword [esp + 0x20]
movsd xmm0, qword [eax + 0x1b8]
lea eax, [ecx + 0x38]
movsd qword [ecx + 0x28], xmm0
mov ecx, 0
mov esi, dword [esp + 0xb8]
mov dword [esp + 0xe8], eax
add esi, 0x160
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
push ecx
push esi
mov dword [esp + 0x5c], esi
test byte [eax + 0x34], 0x20
mov eax, dword [esp + 0x30]
cmovne eax, ecx
mov dword [esp + 0x30], eax
call fcn.1033be70
mov ecx, dword [esp + 0xc0]
add esp, 0xc
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 0x20]
mov dword [ecx], edx
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 8
mov word [ecx + 0xe], ax
cmp dword [edx + 0x15c], 0
jne 0x103104a2
mov eax, dword [edx]
test byte [eax + 0x34], 8
jne 0x103104a2
mov dword [esp + 0x118], edx
lea ecx, [esp + 0x110]
mov edx, edi
mov dword [esp + 0x110], 0x102e3f40
mov dword [esp + 0x114], 0
call fcn.102ddec0
mov ecx, dword [esp + 0xb4]
mov edx, edi
push 0x45
call fcn.1030a980
add esp, 4
test edi, edi
je 0x103104e2
cmp dword [esp + 0x28], 0
je 0x103104cb
mov ecx, edi
call fcn.102e1590
test eax, eax
je 0x103104e2
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [esp + 0x1c]
push 8
push dword [eax + 0x18]
call fcn.102e44c0
add esp, 8
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor esi, esi
cmp cx, word [eax]
jge 0x10310514
mov edi, dword [esp + 0x50]
lea edx, [eax + 0x34]
mov ecx, dword [edi]
lea edx, [edx + 0x48]
mov eax, dword [edx - 0x48]
inc esi
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esp + 0x20]
inc dword [edi]
movsx eax, word [eax]
cmp esi, eax
jl 0x103104f6
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0xb4]
mov esi, dword [edi + 0x10]
dec esi
js 0x1031053c
push esi
mov edx, edi
mov ecx, eax
call fcn.1030b730
mov eax, dword [esp + 0x24]
add esp, 4
dec esi
jns 0x10310521
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
jne 0x10310b1e
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10310576
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x28]
mov edx, edi
call fcn.1030c1b0
add esp, 8
test eax, eax
je 0x1031057a
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [eax + 0xe], 1
jmp 0x1031057a
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xd4], esi
xor esi, esi
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0xcc], 0xffffffff
mov dword [esp + 0xd0], eax
mov dword [esp + 0xe0], edx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0x2c], ecx
test edx, edx
jle 0x10310b54
movsd xmm0, qword [0x10422a58]
lea ecx, [edx - 1]
xorps xmm2, xmm2
movsd qword [esp + 0x58], xmm0
or eax, 0xffffffff
movdqa xmmword [esp + 0x110], xmm2
mov dword [esp + 0x14], eax
movdqa xmmword [esp + 0x80], xmm2
movdqa xmmword [esp + 0x90], xmm2
movq qword [esp + 0xa0], xmm2
mov dword [esp + 0x64], 0
cmp esi, ecx
jne 0x1031062e
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
jmp 0x10310701
lea eax, [esi + esi*8]
mov dword [esp + 0x24], esi
lea edi, [edi + eax*8]
or ecx, 0xffffffff
add edi, 8
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xb8], edi
cmp esi, edx
jge 0x103106ef
mov ecx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1031066f
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x103106a5
inc eax
add ecx, 4
cmp eax, edx
jl 0x10310663
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
and ecx, dword [esp + 0xc8]
and edx, dword [esp + 0xcc]
mov esi, dword [esp + 0x40]
or ecx, edx
mov ecx, dword [esp + 0x24]
jne 0x103106bc
cmp ecx, esi
jne 0x103106d2
inc esi
mov dword [esp + 0x40], esi
jmp 0x103106d2
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x10310680
cmp ecx, esi
jle 0x103106c6
test byte [edi + 0x20], 0xa
jne 0x103106eb
inc dword [esp + 0x4c]
jne 0x103106eb
test byte [edi + 0x20], 8
jne 0x103106eb
inc ecx
add edi, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0xb8], edi
cmp ecx, dword [esp + 0x28]
jl 0x10310651
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov edx, ecx
mov dword [esp + 0x3c], edx
test ecx, ecx
js 0x103109bb
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x70], xmm1
test eax, eax
jns 0x103109c4
mov edi, dword [esp + 0x20]
lea eax, [esi + esi*8]
mov ecx, esi
mov dword [esp + 0x30], ecx
lea edi, [edi + eax*8]
add edi, 8
mov dword [esp + 0xb8], edi
cmp esi, dword [esp + 0x28]
jge 0x1031097e
mov edx, dword [esp + 0x18]
imul eax, esi, 0x58
sub edx, 0xffffff80
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
cmp ecx, esi
jle 0x1031075e
test byte [edi + 0x20], 0xa
jne 0x1031097e
mov ecx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1031077c
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x103107be
inc eax
add ecx, 4
cmp eax, edx
jl 0x10310770
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0xc8]
and eax, dword [esp + 0xcc]
or ecx, eax
je 0x1031098f
cmp dword [esp + 0x3c], 0
je 0x103107d5
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], esi
jmp 0x103107f1
xor edx, edx
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
jmp 0x1031078d
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xc4], eax
cmp dword [edi + 0x44], 0
jne 0x103107fb
inc dword [esp + 0x64]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0xb0]
test byte [eax + 0x2a], 0x10
je 0x10310820
mov esi, dword [esp + 0x24]
lea eax, [esi + 8]
mov dword [esp + 0xd8], eax
call fcn.1030d180
jmp 0x10310829
call fcn.1030d810
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1031093f
movsd xmm0, qword [esp + 0x100]
movsd qword [esi], xmm0
movsd xmm0, qword [esp + 0x100]
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x10c]
and ecx, dword [esp + 0xc8]
and eax, dword [esp + 0xcc]
or ecx, eax
mov edi, dword [esp + 0xb8]
jne 0x10310965
cmp dword [esp + 0x64], 0
je 0x10310894
cmp dword [edi + 0x44], 0
je 0x10310894
test dword [esp + 0xe8], 0x100f3000
je 0x10310965
cmp dword [esp + 0x14], 0
jl 0x103108d8
movsd xmm2, qword [esp + 0x58]
comisd xmm2, xmm0
ja 0x103108d8
comisd xmm0, xmm2
ja 0x10310965
mov ax, word [esp + 0xee]
cmp ax, word [esp + 0x86]
ja 0x103108d8
movsd xmm1, qword [esp + 0x70]
comisd xmm1, xmmword [esp + 0xf0]
jbe 0x1031096b
movdqu xmm0, xmmword [esp + 0xf8]
mov eax, dword [esp + 0x30]
movdqu xmm2, xmmword [esp + 0xe8]
mov dword [esp + 0x14], eax
movdqu xmmword [esp + 0x90], xmm0
movq xmm0, qword [esp + 0x108]
movdqa xmmword [esp + 0x80], xmm2
movsd xmm1, qword [esp + 0x88]
movq qword [esp + 0xa0], xmm0
movsd xmm0, qword [esp + 0x98]
movdqa xmmword [esp + 0x110], xmm2
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x70], xmm1
jmp 0x10310974
cmp dword [esp + 0x4c], 0
je 0x10310842
movsd xmm0, qword [esp + 0x100]
divsd xmm0, qword [esi]
movsd qword [esp + 0x100], xmm0
jmp 0x1031084b
movsd xmm1, qword [esp + 0x70]
movdqa xmm2, xmmword [esp + 0x110]
test byte [edi + 0x20], 8
je 0x10310993
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
dec edx
mov dword [esp + 0x3c], edx
jns 0x10310710
jmp 0x103109c4
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add edi, 0x48
add dword [esp + 0x24], 0x58
inc ecx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xb8], edi
cmp ecx, dword [esp + 0x28]
jl 0x10310750
jmp 0x1031097e
movsd xmm1, qword [esp + 0x88]
movd edi, xmm2
test edi, 0x40000000
je 0x103109d8
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0xe], 2
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax*8]
mov esi, dword [esp + 0x20]
movq xmm0, qword [esp + 0x90]
and dword [esp + 0x54], edi
mov dword [esp + 0x30], ecx
movdqu xmmword [edx], xmm2
movq qword [edx + 0x10], xmm0
mov eax, dword [esi + ecx*8 + 0x34]
mov dword [edx + 0x1c], eax
test edi, 0x200f0000
je 0x10310a37
cmp word [esp + 0x7c], 0
je 0x10310a24
test edi, 0x20000000
jne 0x10310a24
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x20], eax
jmp 0x10310a3e
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
mov dword [edx + 0x20], eax
inc dword [esi + 0x48]
mov esi, dword [esp + 0x20]
jmp 0x10310a3e
mov dword [edx + 0x20], 0xffffffff
mov edx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [edx]
test edx, edx
jle 0x10310a65
mov esi, dword [esi + ecx*8 + 0x34]
mov ecx, dword [esp + 0x50]
add ecx, 4
cmp dword [ecx], esi
je 0x10310af4
inc eax
add ecx, 4
cmp eax, edx
jl 0x10310a55
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
not ecx
and dword [esp + 0xc8], ecx
not edx
mov ecx, dword [esp + 0x2c]
and dword [esp + 0xcc], edx
comisd xmm1, xmmword [0x10422978]
mov edx, dword [esp + 0x1c]
mov byte [ecx + 0x34], al
jb 0x10310ab1
mulsd xmm1, qword [edx + 0x1b8]
movsd qword [edx + 0x1b8], xmm1
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + eax*8 + 0x4c]
test eax, eax
je 0x10310ac9
test edi, 0xf0000
je 0x10310b0e
mov eax, dword [esp + 0xdc]
add ecx, 0x58
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x2c], ecx
cmp eax, edx
jge 0x10310b54
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
jmp 0x103105d2
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x10310a76
push dword [eax]
push 0x10421334
push edx
call fcn.102b6530
add esp, 0xc
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, edi
movsd xmm0, qword [edi + 0x28]
mov ecx, dword [esp + 0x34]
movsd qword [eax + 0x1b8], xmm0
call fcn.103101f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.103362c6
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x44], 0
jne 0x10310b1e
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
jne 0x10310b1e
mov edi, dword [esp + 0x18]
test edx, edx
je 0x10310b76
mov ax, word [ecx - 0x52]
jmp 0x10310b78
xor eax, eax
mov word [edi + 8], ax
mov eax, dword [esp + 0x54]
and eax, 0x2000000
mov dword [esp + 0x54], eax
je 0x10310b9e
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10310b9e
mov ax, word [ecx]
mov word [edi + 8], ax
mov eax, dword [esp + 0x54]
test byte [ebp + 0x14], 4
je 0x10310bb3
test eax, eax
je 0x10310bb3
mov byte [edi + 0xc], 1
and dword [edi + 0x38], 0xffbfffff
or edx, 0xffffffff
mov ecx, esi
call fcn.102ed030
movsd xmm0, qword [0x10422978]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
movsd qword [edi + 0x30], xmm0
test ecx, ecx
jle 0x10310e10
mov dword [esp + 0x38], ecx
lea edx, [edi + 0x38]
lea ecx, [ecx]
movzx eax, byte [edx + 0x34]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [edx + 8]
mulsd xmm0, qword [edi + 0x30]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
mov esi, dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 0x14], eax
movsd qword [edi + 0x30], xmm0
mov edi, 0xfff0bdc0
mov edx, dword [esi + 0x40]
test edx, edx
je 0x10310c43
mov eax, dword [esp + 0x34]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x10310c43
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10310c43
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x10310c37
mov cl, byte [esi + 0x2a]
test cl, 2
jne 0x10310d3b
cmp dword [esi + 0xc], 0
jne 0x10310d3b
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, 0x8000000
je 0x10310ca0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10310c7c
mov ecx, dword [esp + 0x34]
cmp dword [eax], ecx
je 0x10310c7c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10310c71
mov esi, dword [esp + 0x14]
mov edx, 0x87
mov ecx, dword [esp + 0x48]
push 0xfffffffffffffff6
push eax
push 0
push 0
push dword [esi + 0x2c]
call fcn.102cfbe0
add esp, 0x14
jmp 0x10310d3f
test cl, 0x10
jne 0x10310d3b
test eax, 0x400000
jne 0x10310d26
test byte [ebp + 0x14], 0x10
jne 0x10310d26
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp byte [ecx + 0xc], al
mov ecx, dword [esp + 0x1c]
setne al
add eax, 0x27
push eax
mov eax, dword [esp + 0x18]
push esi
push edi
mov edx, dword [eax + 0x2c]
call fcn.102f4710
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp byte [eax + 0xc], 0
jne 0x10310d3b
cmp word [esi + 0x26], 0x40
jge 0x10310d3b
mov eax, dword [esp + 0x14]
xor esi, esi
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x10310d0f
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x10310d02
mov eax, dword [esp + 0x48]
mov ecx, eax
push 0xfffffffffffffff2
push esi
mov edx, dword [eax + 0x1c]
dec edx
call fcn.102d0120
add esp, 8
jmp 0x10310d3b
push dword [esi]
mov ecx, dword [esp + 0x20]
mov edx, edi
push 0
push dword [esi + 0x20]
call fcn.102e83e0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x10310d6b
mov edx, dword [esp + 0xb4]
push ecx
push dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x34]
push esi
call fcn.1030c740
add esp, 0x10
jmp 0x10310d9f
test eax, 0xf0000
je 0x10310d9f
mov esi, dword [ecx + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.102ed610
mov ecx, dword [esp + 0x48]
mov edx, 0x27
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x4c]
push edi
push dword [esi + 0x24]
push dword [eax + 0x20]
call fcn.102cfbe0
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.102ed030
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x10310dd6
mov esi, dword [esp + 0x14]
add ecx, 4
mov esi, dword [esi + 0x2c]
cmp dword [ecx], esi
je 0x10310ea7
inc eax
add ecx, 4
cmp eax, edx
jl 0x10310dc6
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
not edx
and dword [esp + 0x30], edx
not ecx
mov edx, dword [esp + 0x44]
and dword [esp + 0x2c], ecx
add edx, 0x58
dec dword [esp + 0x38]
mov dword [esp + 0x44], edx
jne 0x10310bf0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
jne 0x10310b22
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
test ecx, ecx
jle 0x10310e91
add edi, 0x64
push dword [ebp + 0x14]
movzx eax, byte [edi + 8]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
lea eax, [edi - 0x2c]
push esi
push eax
call fcn.1030ea60
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, esi
push dword [esp + 0x4c]
push dword [ebp + 0x14]
call fcn.1030ecb0
mov ecx, dword [edi]
lea edi, [edi + 0x58]
mov dword [esp + 0x54], eax
inc esi
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov dword [esp + 0x2c], edx
mov dword [eax + 0x14], ecx
cmp esi, dword [esp + 0x28]
jl 0x10310e41
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.103362c6
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x10310de7