Function at 0x103898b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x200
push 0
lea edi, [esi + 0x601c]
push edi
call fcn.10425c00
add esp, 0xc
mov ecx, esi
call fcn.103e5970
mov dx, word [esi + 0x284]
mov cx, word [esi + 0x28c]
mov dword [edi], eax
mov eax, dword [esi + 0x29c]
mov dword [ebp - 0x48], eax
mov word [esi + 0x6024], ax
mov ax, word [esi + 0x2a0]
mov word [esi + 0x6026], ax
mov eax, dword [esi + 0x2b0]
mov dword [esi + 0x602c], eax
mov eax, dword [esi + 0x2b8]
mov dword [esi + 0x6034], eax
mov eax, dword [esi + 0x2b4]
mov dword [esi + 0x6030], eax
mov eax, dword [esi + 0x2bc]
mov dword [esi + 0x6038], eax
mov eax, dword [esi + 0x603c]
and eax, 0xffffff80
shl dx, 4
shl cx, 4
or eax, 0x80
dec dx
dec cx
and eax, 0xfffffbff
mov word [esi + 0x6020], dx
cmp byte [esi + 0xf39], 0
mov word [esi + 0x6022], cx
mov dword [esi + 0x603c], eax
je 0x103899a5
movzx eax, word [esi + 0x444]
mov edx, 0xfffe
inc ax
and ax, dx
dec ax
movzx ecx, ax
movzx eax, word [esi + 0x440]
inc ax
and ax, dx
dec ax
movzx eax, ax
jmp 0x103899ab
movzx ecx, cx
movzx eax, dx
mov word [esi + 0x6040], ax
mov word [esi + 0x6042], cx
movzx ebx, cx
mov ecx, dword [esi + 0x30]
movzx edx, ax
mov dword [ebp - 0x50], ebx
mov eax, dword [ecx]
cmp byte [eax + 0x1b4], 0
je 0x103899d8
mov eax, dword [eax + 0x1b0]
jmp 0x103899de
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x28]
movzx edi, ax
mov word [esi + 0x6044], di
mov eax, dword [ecx]
cmp byte [eax + 0x1b4], 0
je 0x103899fb
mov eax, dword [eax + 0x1b0]
jmp 0x10389a01
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x28]
mov word [esi + 0x6046], ax
cmp dx, di
jae 0x1038a78e
mov eax, dword [ecx]
cmp byte [eax + 0x1b4], 0
je 0x10389a24
mov eax, dword [eax + 0x1ac]
jmp 0x10389a2a
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x18]
movzx edx, bx
cmp edx, eax
jae 0x1038a78e
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + 0x48]
mov ebx, dword [eax + 0x50]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x4c]
mov eax, dword [eax + 0x44]
test al, 8
jne 0x10389a80
test eax, 0x400
jne 0x10389a80
test edx, edx
js 0x10389a80
test ebx, 0x20000000
jne 0x10389a80
test eax, 0x8000000
jne 0x10389a80
test edx, 0x100
jne 0x10389a80
test dword [ebp - 0x4c], 0x800000
je 0x10389b7d
mov eax, dword [esi + 0x248]
lea edx, [esi + eax*4]
mov eax, dword [edx + 0x5c]
mov eax, dword [eax]
cmp byte [eax + 0x1b4], 0
je 0x10389a9f
mov eax, dword [eax + 0x1b0]
jmp 0x10389aa5
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x28]
movzx ebx, ax
mov word [esi + 0x6024], bx
mov eax, dword [edx + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov ax, word [eax + 0x2c]
mov word [esi + 0x6026], ax
mov dword [esi + 0x602c], 0
mov eax, dword [edx + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf0]
shr eax, 8
mov dword [esi + 0x6030], eax
mov eax, dword [edx + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf8]
shr eax, 8
mov dword [esi + 0x6034], eax
mov eax, dword [edx + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xfc]
shr eax, 8
mov dword [esi + 0x6038], eax
mov eax, dword [edx + 0x5c]
mov edx, dword [esi + 0x603c]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xcc]
btc edx, eax
and edx, 0x7f
xor edx, dword [esi + 0x603c]
and edx, 0xffffff7f
cmp dword [esi + 0x460], 3
mov dword [esi + 0x603c], edx
jne 0x10389c20
cmp dword [esi + 0x464], 0
jne 0x10389b7d
lea eax, [edi + edi]
mov dword [esi + 0x6030], 0
mov word [esi + 0x6046], ax
or edx, 0x300
lea eax, [ebx + ebx]
mov dword [esi + 0x603c], edx
mov word [esi + 0x6026], ax
cmp dword [esi + 0x460], 3
jne 0x10389c20
mov dword [esi + 0x604c], 0
mov dword [esi + 0x6050], 0
cmp dword [esi + 0x464], 0
jne 0x10389be0
mov eax, dword [ecx]
mov edx, dword [esi + 0x605c]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf8]
shr eax, 8
mov dword [esi + 0x6054], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xfc]
shr eax, 8
or edx, 0x300
mov dword [esi + 0x605c], edx
jmp 0x10389c66
mov edx, dword [ebp - 0x50]
movzx eax, dx
mov edx, dword [esi + 0x605c]
inc eax
imul eax, dword [ebp - 0x48]
mov dword [esi + 0x6054], 0
mov dword [esi + 0x6058], 0
mov dword [esi + 0x6030], 0
shr eax, 8
mov dword [esi + 0x6034], eax
mov dword [esi + 0x6038], eax
jmp 0x10389c6c
mov dword [esi + 0x604c], 0
mov eax, dword [ecx]
mov edx, dword [esi + 0x605c]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf0]
shr eax, 8
mov dword [esi + 0x6050], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf8]
shr eax, 8
mov dword [esi + 0x6054], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xfc]
shr eax, 8
mov dword [esi + 0x6058], eax
mov eax, dword [ecx]
and edx, 0xffffff80
mov ecx, dword [eax + 0x74]
cmp byte [ecx + 0xbd], 0
je 0x10389c96
mov ecx, dword [ecx + 0xcc]
mov eax, 1
shl eax, cl
and eax, 0x7f
or eax, edx
and eax, 0xffffff7f
jmp 0x10389c9d
mov eax, edx
or eax, 0x80
movups xmm0, xmmword [esi + 0x6020]
and eax, 0xfffffbff
lea ebx, [esi + 0x6080]
mov dword [esi + 0x605c], eax
lea eax, [esi + 0x64f8]
movups xmmword [esi + 0x6060], xmm0
movups xmm0, xmmword [esi + 0x6030]
movups xmmword [esi + 0x6070], xmm0
test ebx, ebx
je 0x10389ce4
test eax, eax
je 0x10389cde
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x10389cf4
mov dword [ebx], 0
call fcn.1043a2d6
mov dword [eax], 0x16
call fcn.1043a1d8
lea edi, [esi + 0x6084]
lea ecx, [esi + 0x64fc]
test edi, edi
je 0x10389d1b
test ecx, ecx
je 0x10389d14
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x10389d2b
xorps xmm0, xmm0
movq qword [edi], xmm0
call fcn.1043a2d6
mov dword [eax], 0x16
call fcn.1043a1d8
mov ecx, dword [esi + 0x3c2c]
imul eax, ecx, 0x980
mov al, byte [eax + esi + 0xf64]
mov byte [ebx], al
imul eax, ecx, 0x164
cmp dword [esi + 0x338], 0
mov al, byte [eax + esi + 0x2264]
mov byte [edi], al
je 0x10389d73
cmp dword [esi + 0x9eb4], 0
jne 0x10389d73
mov al, byte [esi + 0x21c]
and dword [esi + 0x6088], 0xfffffdff
mov byte [edi], al
cmp dword [esi + 0x494], 0
je 0x10389d8b
mov al, byte [esi + 0x3c4c]
or dword [esi + 0x6088], 0x20
mov byte [edi], al
mov al, byte [esi + 0x641c]
mov byte [esi + 0x608c], al
mov al, byte [esi + 0x641d]
mov byte [esi + 0x608d], al
mov al, byte [esi + 0x6420]
mov byte [esi + 0x6090], al
mov al, byte [esi + 0x6423]
mov byte [esi + 0x6093], al
mov eax, dword [esi + 0x6428]
mov dword [esi + 0x6098], eax
mov al, byte [esi + 0x641e]
mov byte [esi + 0x608e], al
mov al, byte [esi + 0x6421]
mov byte [esi + 0x6091], al
mov al, byte [esi + 0x6424]
mov byte [esi + 0x6094], al
mov eax, dword [esi + 0x642c]
mov dword [esi + 0x609c], eax
mov al, byte [esi + 0x641f]
mov byte [esi + 0x608f], al
mov al, byte [esi + 0x6422]
mov byte [esi + 0x6092], al
mov al, byte [esi + 0x6425]
mov byte [esi + 0x6095], al
mov eax, dword [esi + 0x6430]
mov dword [esi + 0x60a0], eax
cmp dword [esi + 0x3c54], 0
mov al, byte [esi + 0x6426]
mov byte [esi + 0x6096], al
mov al, byte [esi + 0x6427]
mov byte [esi + 0x6097], al
mov eax, dword [esi + 0x6434]
mov dword [esi + 0x60a4], eax
mov eax, dword [esi + 0x6438]
mov dword [esi + 0x60a8], eax
mov eax, dword [esi + 0x643c]
mov dword [esi + 0x60ac], eax
mov eax, dword [esi + 0x6440]
mov dword [esi + 0x60b0], eax
mov eax, dword [esi + 0x6444]
mov dword [esi + 0x60b4], eax
mov eax, dword [esi + 0x6448]
mov dword [esi + 0x60b8], eax
mov eax, dword [esi + 0x644c]
mov dword [esi + 0x60bc], eax
mov eax, dword [esi + 0x6450]
mov dword [esi + 0x60c0], eax
mov eax, dword [esi + 0x6458]
mov dword [esi + 0x60c8], eax
mov eax, dword [esi + 0x645c]
mov dword [esi + 0x60cc], eax
mov eax, dword [esi + 0x6454]
mov dword [esi + 0x60c4], eax
mov al, byte [esi + 0x6460]
mov byte [esi + 0x60d0], al
mov al, byte [esi + 0x6461]
mov byte [esi + 0x60d1], al
mov ax, word [esi + 0x6462]
mov word [esi + 0x60d2], ax
je 0x10389ef8
mov al, 1
mov cl, al
jmp 0x10389f04
mov al, byte [esi + 0x646a]
mov cl, byte [esi + 0x6469]
mov byte [esi + 0x60d9], cl
mov byte [esi + 0x60da], al
mov al, byte [esi + 0x6468]
mov byte [esi + 0x60d8], al
mov eax, dword [esi + 0x60d4]
xor eax, dword [esi + 0x6464]
and eax, 0x17
xor dword [esi + 0x60d4], eax
mov al, byte [esi + 0x868]
mov byte [esi + 0x60d6], al
mov al, byte [esi + 0x646b]
mov byte [esi + 0x60db], al
mov eax, dword [esi + 0x646c]
mov dword [esi + 0x60dc], eax
mov al, byte [esi + 0x6470]
mov byte [esi + 0x60e0], al
mov al, byte [esi + 0x6471]
mov byte [esi + 0x60e1], al
mov edx, dword [esi + 0x8b8]
mov eax, dword [esi + 0x8b4]
lea ecx, [edx + edx]
cmp eax, edx
jl 0x10389f87
cmp eax, ecx
cmovg eax, ecx
mov edx, eax
cmp dword [esi + 0x3c44], 0
mov edi, dword [ebp + 8]
je 0x10389fd2
cmp dword [esi + 0x3c34], 0x64
jae 0x10389fb1
cmp edi, 1
jne 0x10389fb1
mov eax, dword [esi + 0x8a0]
lea ecx, [eax + eax*4]
lea eax, [edx + edx]
cmp ecx, eax
jge 0x10389fd2
mov ecx, dword [esi + 0x9c0]
mov eax, ecx
neg eax
mov byte [esi + 0x60d5], 2
sbb al, al
and al, 0x21
mov byte [esi + 0x60d7], al
test ecx, ecx
je 0x10389ffa
jmp 0x10389fe0
mov byte [esi + 0x60d7], 0
mov byte [esi + 0x60d5], 0
mov ecx, dword [esi + 0x60d4]
mov eax, ecx
and al, 7
cmp al, 1
jne 0x10389ffa
and ecx, 0xfffffffa
or ecx, 2
mov dword [esi + 0x60d4], ecx
mov al, byte [esi + 0x3aac]
lea ebx, [esi + 0x3b2c]
mov byte [esi + 0x60e4], al
mov al, byte [esi + 0x3ab0]
mov byte [esi + 0x60e5], al
mov al, byte [esi + 0x3ab4]
mov byte [esi + 0x60e6], al
mov al, byte [esi + 0x3ab8]
mov byte [esi + 0x60e7], al
mov al, byte [esi + 0x3abc]
mov byte [esi + 0x60e8], al
mov al, byte [esi + 0x3ac0]
mov byte [esi + 0x60e9], al
mov al, byte [esi + 0x3ac4]
mov byte [esi + 0x60ea], al
mov al, byte [esi + 0x3ac8]
mov byte [esi + 0x60eb], al
mov al, byte [ebx]
mov byte [esi + 0x60ec], al
mov al, byte [esi + 0x3b30]
mov byte [esi + 0x60ed], al
mov al, byte [esi + 0x3b34]
mov byte [esi + 0x60ee], al
mov al, byte [esi + 0x3b38]
mov byte [esi + 0x60ef], al
mov al, byte [esi + 0x3b3c]
mov byte [esi + 0x60f0], al
mov al, byte [esi + 0x3b40]
mov byte [esi + 0x60f1], al
mov al, byte [esi + 0x3b44]
mov byte [esi + 0x60f2], al
mov al, byte [esi + 0x3b48]
mov byte [esi + 0x60f3], al
cmp edi, 1
je 0x1038a0c9
test edi, edi
jne 0x1038a334
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0xffffffff
movups xmmword [ebp - 0x20], xmm0
lea ecx, [esi + 0x3a9c]
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
xor edi, edi
mov dword [ebp - 0x44], 0xffffffff
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov edx, dword [ebx - 0x80]
mov eax, ecx
mov dword [ebp - 0x48], eax
test edx, edx
js 0x1038a11d
mov ecx, dword [ecx]
push edx
call fcn.103eb0d0
mov ecx, eax
mov eax, dword [ebp - 0x48]
jmp 0x1038a120
or ecx, 0xffffffff
mov dword [ebp + edi - 0x24], ecx
mov ecx, dword [ebx]
test ecx, ecx
js 0x1038a13b
push ecx
mov ecx, dword [eax]
call fcn.103eb0d0
mov edx, eax
mov eax, dword [ebp - 0x48]
mov ecx, eax
jmp 0x1038a144
or edx, 0xffffffff
lea ecx, [esi + 0x3a9c]
mov dword [ebp + edi - 0x44], edx
add ebx, 4
add edi, 4
cmp edi, 0x20
jl 0x1038a102
xor edx, edx
lea edi, [ebp - 0x44]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edi
nop
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp ecx, 1
jne 0x1038a18f
cmp dword [ebp + ebx*4 - 0x24], 0xffffffff
je 0x1038a1f6
mov edi, dword [edi]
cmp edi, 0xffffffff
je 0x1038a1f6
mov ecx, dword [eax]
call fcn.103eaba0
mov ecx, eax
mov eax, dword [ebp + ebx*4 - 0x24]
sub ecx, eax
sub edi, eax
jmp 0x1038a1a9
test ecx, ecx
jne 0x1038a1f6
mov edi, dword [ebp + ebx*4 - 0x24]
cmp edi, 0xffffffff
je 0x1038a1f6
mov ecx, dword [eax]
call fcn.103eaba0
mov ecx, eax
sub ecx, edi
mov edi, ecx
test edi, edi
je 0x1038a1f3
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cdq
xor eax, edx
sub eax, edx
add eax, 0x4000
cdq
idiv edi
imul eax, ecx
add eax, 0x20
sar eax, 6
cmp eax, 0xfffffc00
jge 0x1038a1de
mov edx, dword [ebp - 0x4c]
mov eax, 0xfffffc00
movzx ecx, ax
jmp 0x1038a1f9
mov edx, dword [ebp - 0x4c]
cmp eax, 0x3ff
mov ecx, 0x3ff
cmovg eax, ecx
movzx ecx, ax
jmp 0x1038a1f9
mov edx, dword [ebp - 0x4c]
or ecx, 0xffffffff
mov edi, dword [ebp - 0x50]
lea eax, [edx + ebx]
inc ebx
mov word [esi + eax*2 + 0x6104], cx
mov eax, dword [ebp - 0x48]
cmp ebx, 8
jl 0x1038a162
add edx, 8
add edi, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edx
cmp edx, 0x40
jl 0x1038a160
xor ebx, ebx
mov edi, eax
nop dword [eax]
cmp dword [ebp + ebx*4 - 0x24], 0xffffffff
jne 0x1038a23b
or al, 0xff
jmp 0x1038a248
mov ecx, dword [edi]
call fcn.103eaba0
sub eax, dword [ebp + ebx*4 - 0x24]
sar eax, 1
mov byte [esi + ebx + 0x60f4], al
cmp dword [ebp + ebx*4 - 0x44], 0xffffffff
jne 0x1038a25a
or al, 0xff
jmp 0x1038a267
mov ecx, dword [edi]
call fcn.103eaba0
sub eax, dword [ebp + ebx*4 - 0x44]
sar eax, 1
mov byte [esi + ebx + 0x60fc], al
inc ebx
cmp ebx, 8
jl 0x1038a230
xor eax, eax
mov dword [ebp - 0x4c], eax
nop dword [eax]
mov ebx, dword [ebp + eax*4 - 0x44]
mov ecx, eax
shr eax, 2
and ecx, 3
shl ecx, 3
lea edi, [esi + eax*4]
xor edx, edx
mov dword [ebp - 0x48], ecx
cmp ebx, dword [ebp - 0x10]
sete dl
xor eax, eax
add ecx, 5
shl edx, cl
cmp ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
sete al
add ecx, 4
shl eax, cl
or edx, eax
mov ecx, dword [ebp - 0x48]
xor eax, eax
cmp ebx, dword [ebp - 0x18]
sete al
add ecx, 3
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
xor eax, eax
cmp ebx, dword [ebp - 0x1c]
sete al
add ecx, 2
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
xor eax, eax
cmp ebx, dword [ebp - 0x20]
sete al
inc ecx
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
xor eax, eax
cmp ebx, dword [ebp - 8]
sete al
add ecx, 7
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
xor eax, eax
cmp ebx, dword [ebp - 0xc]
sete al
add ecx, 6
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
xor eax, eax
cmp ebx, dword [ebp - 0x24]
sete al
shl eax, cl
or edx, eax
mov eax, dword [ebp - 0x4c]
or dword [edi + 0x6184], edx
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, 8
jl 0x1038a280
mov edi, dword [ebp + 8]
mov bl, byte [esi + 0x7320]
cmp bl, 1
jne 0x1038a350
cmp byte [esi + 0x7308], 0
jne 0x1038a350
mov eax, dword [esi + 0x7324]
jmp 0x1038a352
xor eax, eax
mov dword [esi + 0x618c], eax
mov eax, dword [esi + 0x2550]
mov dword [esi + 0x6194], eax
movzx eax, word [esi + 0x253c]
mov word [esi + 0x6198], ax
movzx eax, word [esi + 0x254c]
mov word [esi + 0x619a], ax
movzx eax, word [esi + 0x2548]
mov word [esi + 0x619c], ax
mov al, byte [esi + 0x731c]
dec al
mov byte [esi + 0x61a4], al
mov word [esi + 0x61a5], 0
mov byte [esi + 0x61a7], 0
mov byte [esi + 0x61dc], 0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
test dword [eax + 0x44], 0x8000000
jne 0x1038a3ed
test dword [eax + 0x4c], 0x100
jne 0x1038a3ed
test dword [eax + 0x48], 0x800000
jne 0x1038a3ed
mov eax, dword [esi + 0x28c]
inc eax
imul eax, dword [esi + 0x284]
lea eax, [eax + eax*2]
shl eax, 6
jmp 0x1038a3f9
mov eax, dword [esi + 0x284]
lea eax, [eax + eax*2]
shl eax, 7
add eax, 0xff
xor ecx, ecx
and eax, 0xffffff00
mov dword [esi + 0x61b8], eax
mov edx, dword [esi + 0x8e8]
mov eax, dword [esi + 0x8e4]
and edx, 1
and eax, 1
add edx, edx
or edx, eax
mov eax, dword [ebp + 0x10]
and eax, 1
shl edx, 2
or edx, eax
mov eax, edi
and eax, 3
shl edx, 2
or edx, eax
mov eax, 0x20
shl edx, 2
test bl, bl
cmovne ecx, eax
mov eax, dword [esi + 0x61c4]
and eax, 0xffffffc0
or ecx, eax
mov eax, dword [ebp + 0xc]
and eax, 3
or ecx, eax
and ecx, 0xffffff3f
or edx, ecx
xor ecx, ecx
mov dword [esi + 0x61c4], edx
movzx edx, byte [esi + 0xf45]
mov eax, dword [esi + 0xf40]
and eax, 3
shl edx, 2
or edx, eax
mov eax, dword [esi + 0xf3c]
and eax, 3
shl edx, 2
or edx, eax
mov eax, 0x4000000
shl edx, 0x1b
cmp byte [esi + 0xf39], cl
cmovne ecx, eax
mov eax, dword [esi + 0x61e4]
and eax, 0x3ffffff
or ecx, eax
and ecx, 0x7ffffff
or edx, ecx
mov dword [esi + 0x61e4], edx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
test dword [eax + 0x44], 0x8000000
jne 0x1038a4dd
test dword [eax + 0x4c], 0x100
jne 0x1038a4dd
test dword [eax + 0x48], 0x800000
je 0x1038a5f9
cmp dword [esi + 0xf20], 0
jbe 0x1038a4f8
cmp dword [ebp + 0x10], 0
je 0x1038a4f8
cmp edi, 1
jne 0x1038a4f8
mov ecx, 0x100
jmp 0x1038a4fa
xor ecx, ecx
mov eax, dword [esi + 0x61dc]
and eax, 0xfffffeff
or eax, ecx
mov dword [esi + 0x61dc], eax
and dword [esi + 0x61c4], 0xffffffbf
movzx ecx, byte [esi + 0xf29]
movzx eax, byte [esi + 0xf28]
and ecx, 1
and eax, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x61e4]
and eax, 0xfcffffff
shl ecx, 0x18
or ecx, eax
mov dword [esi + 0x61e4], ecx
mov ecx, esi
mov ax, word [esi + 0xf2c]
mov word [esi + 0x61ea], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x78]
call eax
test al, al
jne 0x1038a56f
cmp dword [esi + 0x9b8], 0
je 0x1038a56f
cmp dword [esi + 0x86c], 0
je 0x1038a57d
mov ax, word [esi + 0xf34]
mov word [esi + 0x61e8], ax
cmp byte [esi + 0x938], 0
jne 0x1038a5f9
mov eax, dword [esi + 0x3c34]
cmp eax, 0x5a
ja 0x1038a5c9
or dword [esi + 0x61e4], 0x2000000
cmp eax, 0xa
ja 0x1038a5a7
mov eax, 0x5dc
jmp 0x1038a5c2
cmp eax, 0x23
ja 0x1038a5b3
mov eax, 0x3e8
jmp 0x1038a5c2
cmp eax, 0x32
mov eax, 0x1f4
jbe 0x1038a5c2
mov eax, 0xc8
mov word [esi + 0x61ea], ax
mov eax, dword [esi + 0xa04]
test eax, eax
jne 0x1038a5de
cmp dword [esi + 0xa08], 1
je 0x1038a5f9
jmp 0x1038a5ef
cmp eax, 1
jne 0x1038a5ef
cmp dword [esi + 0xa08], 0x96
jl 0x1038a5f9
or dword [esi + 0x61c4], 0x80
cmp byte [esi + 0x919], 1
jne 0x1038a6ae
mov edx, dword [esi + 0x2c08]
xor ecx, ecx
mov eax, dword [esi + 0x2c04]
and edx, 1
mov edi, dword [esi + 0x2bfc]
and eax, 1
add edx, edx
or edx, eax
mov eax, dword [esi + 0x2c00]
and eax, 7
shl edx, 3
or edx, eax
mov eax, edi
and eax, 0x3ff
shl edx, 0xa
or edx, eax
mov eax, dword [esi + 0x2bf8]
and eax, 0x3f
shl edx, 6
or edx, eax
mov eax, 0x100
shl edx, 9
test edi, edi
cmove ecx, eax
mov eax, dword [esi + 0x61c4]
and eax, 0xfffffeff
or ecx, eax
and ecx, 0xc00001ff
or edx, ecx
mov dword [esi + 0x61c4], edx
test edi, edi
jle 0x1038a6a5
cmp dword [esi + 0x2534], 1
je 0x1038a6a5
mov ecx, dword [esi + 0x3a9c]
call fcn.103eab80
mov byte [esi + 0x61c8], al
mov ecx, dword [esi + 0x3a9c]
call fcn.103eb150
mov byte [esi + 0x61c9], al
jmp 0x1038a6ae
mov word [esi + 0x61c8], 0xfefe
mov ecx, dword [esi + 0x3a9c]
call fcn.103eabf0
mov dword [esi + 0x61a0], eax
cmp byte [esi + 0x7308], 0
je 0x1038a6d0
mov al, byte [esi + 0x7310]
jmp 0x1038a6d2
xor al, al
mov byte [esi + 0x61cb], al
xor ecx, ecx
mov eax, dword [esi + 0x9f4]
xor eax, dword [esi + 0x61cc]
and eax, 0x3fffffff
mov byte [ebp - 0x4c], 0
xor dword [esi + 0x61cc], eax
mov eax, 0x40000000
cmp dword [ebp + 0x14], 2
cmove ecx, eax
mov eax, dword [esi + 0x61c4]
and eax, 0xbfffffff
or ecx, eax
mov dword [esi + 0x61c4], ecx
mov ecx, dword [esi + 0x9ecc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x4c]
mov dword [esi + 0x61f0], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
test dword [eax + 0x48], 0x800000
je 0x1038a749
or dword [esi + 0x6218], 0x80000000
mov byte [ebp - 0x4c], 1
push dword [ebp - 0x4c]
movzx eax, word [esi + 0x6062]
mov ecx, esi
inc eax
push eax
movzx eax, word [esi + 0x6060]
inc eax
push eax
call fcn.103e5870
mov ecx, dword [esi + 0x6218]
xor ecx, eax
and ecx, 0x7fffffff
xor dword [esi + 0x6218], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x10