Function at 0x10308f30
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x104cc790]
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.10334af0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0xb0], esi
movzx eax, word [eax]
cmp ax, 0x40
jle 0x10308fbc
push 0x40
push 0x104191e8
push esi
call fcn.102af1f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1032ef46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
and ecx, 0x40
mov dword [esp + 0x7c], ecx
je 0x10308fcf
mov eax, 1
jmp 0x10308fd0
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.102ad1f0
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x1030900e
lea ecx, [esi + 0x264]
push ecx
push 0
push edx
call fcn.10334af0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
je 0x10309035
mov ecx, eax
call fcn.102acfa0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1032ef46
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.102c8a30
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.10334af0
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 0x10309132
mov eax, dword [edx]
test byte [eax + 0x34], 8
jne 0x10309132
mov dword [esp + 0x118], edx
lea ecx, [esp + 0x110]
mov edx, edi
mov dword [esp + 0x110], 0x102dcc00
mov dword [esp + 0x114], 0
call fcn.102d6b80
mov ecx, dword [esp + 0xb4]
mov edx, edi
push 0x45
call fcn.10303610
add esp, 4
test edi, edi
je 0x10309172
cmp dword [esp + 0x28], 0
je 0x1030915b
mov ecx, edi
call fcn.102da250
test eax, eax
je 0x10309172
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [esp + 0x1c]
push 8
push dword [eax + 0x18]
call fcn.102dd180
add esp, 8
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor esi, esi
cmp cx, word [eax]
jge 0x103091a4
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 0x10309186
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0xb4]
mov esi, dword [edi + 0x10]
dec esi
js 0x103091cc
push esi
mov edx, edi
mov ecx, eax
call fcn.103043c0
mov eax, dword [esp + 0x24]
add esp, 4
dec esi
jns 0x103091b1
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
jne 0x103097ae
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10309206
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x28]
mov edx, edi
call fcn.10304e40
add esp, 8
test eax, eax
je 0x1030920a
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [eax + 0xe], 1
jmp 0x1030920a
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 0x103097e4
movsd xmm0, qword [0x1041a860]
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 0x103092be
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
jmp 0x10309391
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 0x1030937f
mov ecx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x103092ff
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x10309335
inc eax
add ecx, 4
cmp eax, edx
jl 0x103092f3
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 0x1030934c
cmp ecx, esi
jne 0x10309362
inc esi
mov dword [esp + 0x40], esi
jmp 0x10309362
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 0x10309310
cmp ecx, esi
jle 0x10309356
test byte [edi + 0x20], 0xa
jne 0x1030937b
inc dword [esp + 0x4c]
jne 0x1030937b
test byte [edi + 0x20], 8
jne 0x1030937b
inc ecx
add edi, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0xb8], edi
cmp ecx, dword [esp + 0x28]
jl 0x103092e1
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov edx, ecx
mov dword [esp + 0x3c], edx
test ecx, ecx
js 0x1030964b
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x70], xmm1
test eax, eax
jns 0x10309654
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 0x1030960e
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 0x103093ee
test byte [edi + 0x20], 0xa
jne 0x1030960e
mov ecx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1030940c
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x1030944e
inc eax
add ecx, 4
cmp eax, edx
jl 0x10309400
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 0x1030961f
cmp dword [esp + 0x3c], 0
je 0x10309465
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], esi
jmp 0x10309481
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 0x1030941d
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 0x1030948b
inc dword [esp + 0x64]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0xb0]
test byte [eax + 0x2a], 0x10
je 0x103094b0
mov esi, dword [esp + 0x24]
lea eax, [esi + 8]
mov dword [esp + 0xd8], eax
call fcn.10305e10
jmp 0x103094b9
call fcn.103064a0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x103095cf
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 0x103095f5
cmp dword [esp + 0x64], 0
je 0x10309524
cmp dword [edi + 0x44], 0
je 0x10309524
test dword [esp + 0xe8], 0x100f3000
je 0x103095f5
cmp dword [esp + 0x14], 0
jl 0x10309568
movsd xmm2, qword [esp + 0x58]
comisd xmm2, xmm0
ja 0x10309568
comisd xmm0, xmm2
ja 0x103095f5
mov ax, word [esp + 0xee]
cmp ax, word [esp + 0x86]
ja 0x10309568
movsd xmm1, qword [esp + 0x70]
comisd xmm1, xmmword [esp + 0xf0]
jbe 0x103095fb
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 0x10309604
cmp dword [esp + 0x4c], 0
je 0x103094d2
movsd xmm0, qword [esp + 0x100]
divsd xmm0, qword [esi]
movsd qword [esp + 0x100], xmm0
jmp 0x103094db
movsd xmm1, qword [esp + 0x70]
movdqa xmm2, xmmword [esp + 0x110]
test byte [edi + 0x20], 8
je 0x10309623
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
dec edx
mov dword [esp + 0x3c], edx
jns 0x103093a0
jmp 0x10309654
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 0x103093e0
jmp 0x1030960e
movsd xmm1, qword [esp + 0x88]
movd edi, xmm2
test edi, 0x40000000
je 0x10309668
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 0x103096c7
cmp word [esp + 0x7c], 0
je 0x103096b4
test edi, 0x20000000
jne 0x103096b4
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x20], eax
jmp 0x103096ce
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 0x103096ce
mov dword [edx + 0x20], 0xffffffff
mov edx, dword [esp + 0x50]
xor eax, eax
mov edx, dword [edx]
test edx, edx
jle 0x103096f5
mov esi, dword [esi + ecx*8 + 0x34]
mov ecx, dword [esp + 0x50]
add ecx, 4
cmp dword [ecx], esi
je 0x10309784
inc eax
add ecx, 4
cmp eax, edx
jl 0x103096e5
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 [0x1041a780]
mov edx, dword [esp + 0x1c]
mov byte [ecx + 0x34], al
jb 0x10309741
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 0x10309759
test edi, 0xf0000
je 0x1030979e
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 0x103097e4
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
jmp 0x10309262
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 0x10309706
push dword [eax]
push 0x104191d0
push edx
call fcn.102af1f0
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.10308e80
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1032ef46
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x44], 0
jne 0x103097ae
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x38], 0
jne 0x103097ae
mov edi, dword [esp + 0x18]
test edx, edx
je 0x10309806
mov ax, word [ecx - 0x52]
jmp 0x10309808
xor eax, eax
mov word [edi + 8], ax
mov eax, dword [esp + 0x54]
and eax, 0x2000000
mov dword [esp + 0x54], eax
je 0x1030982e
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1030982e
mov ax, word [ecx]
mov word [edi + 8], ax
mov eax, dword [esp + 0x54]
test byte [ebp + 0x14], 4
je 0x10309843
test eax, eax
je 0x10309843
mov byte [edi + 0xc], 1
and dword [edi + 0x38], 0xffbfffff
or edx, 0xffffffff
mov ecx, esi
call fcn.102e5cf0
movsd xmm0, qword [0x1041a780]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
movsd qword [edi + 0x30], xmm0
test ecx, ecx
jle 0x10309aa0
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 0x103098d3
mov eax, dword [esp + 0x34]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x103098d3
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x103098d3
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x103098c7
mov cl, byte [esi + 0x2a]
test cl, 2
jne 0x103099cb
cmp dword [esi + 0xc], 0
jne 0x103099cb
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, 0x8000000
je 0x10309930
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1030990c
mov ecx, dword [esp + 0x34]
cmp dword [eax], ecx
je 0x1030990c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10309901
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.102c88a0
add esp, 0x14
jmp 0x103099cf
test cl, 0x10
jne 0x103099cb
test eax, 0x400000
jne 0x103099b6
test byte [ebp + 0x14], 0x10
jne 0x103099b6
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.102ed3c0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp byte [eax + 0xc], 0
jne 0x103099cb
cmp word [esi + 0x26], 0x40
jge 0x103099cb
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 0x1030999f
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x10309992
mov eax, dword [esp + 0x48]
mov ecx, eax
push 0xfffffffffffffff2
push esi
mov edx, dword [eax + 0x1c]
dec edx
call fcn.102c8de0
add esp, 8
jmp 0x103099cb
push dword [esi]
mov ecx, dword [esp + 0x20]
mov edx, edi
push 0
push dword [esi + 0x20]
call fcn.102e10a0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x103099fb
mov edx, dword [esp + 0xb4]
push ecx
push dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x34]
push esi
call fcn.103053d0
add esp, 0x10
jmp 0x10309a2f
test eax, 0xf0000
je 0x10309a2f
mov esi, dword [ecx + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.102e62d0
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.102c88a0
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.102e5cf0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x10309a66
mov esi, dword [esp + 0x14]
add ecx, 4
mov esi, dword [esi + 0x2c]
cmp dword [ecx], esi
je 0x10309b37
inc eax
add ecx, 4
cmp eax, edx
jl 0x10309a56
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 0x10309880
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 0x103097b2
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
test ecx, ecx
jle 0x10309b21
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.103076f0
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, esi
push dword [esp + 0x4c]
push dword [ebp + 0x14]
call fcn.10307940
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 0x10309ad1
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1032ef46
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 0x10309a77