Function at 0x474791
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4024
call fcn.0047d16c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
and dword [ebp + 8], 0
push esi
push edi
test eax, eax
je 0x475076
cmp eax, 0xfffffffe
je 0x475076
cmp eax, 0xfffffffd
je 0x475076
test dword [ebp + 0x14], 0x4000000
je 0x4747f6
push dword [ebp + 0x14]
push dword [ebx + 0x1c]
call fcn.004750e6
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x4747e9
xor eax, eax
jmp 0x47507d
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
adc esi, edx
mov dword [ebp + 0x10], esi
jmp 0x4747f9
mov esi, dword [ebp + 0x10]
test dword [ebp + 0x14], 0x2000000
mov edx, dword [ebp + 0xc]
mov edi, 0x100000
je 0x47484c
mov eax, edx
or eax, esi
je 0x474817
push 7
jmp 0x475078
and dword [ebp + 0x14], 0xdfffffff
cmp byte [ebp + 0x14], 0
jne 0x474845
mov eax, dword [ebx + 0x27c]
test eax, eax
je 0x474845
cmp dword [eax + 0x3c], 0
jne 0x474845
cmp dword [eax], 0
je 0x474845
mov eax, dword [eax]
mov eax, dword [eax]
test edi, eax
jne 0x4748dc
and dword [ebp + 0x14], 0xfdffffff
cmp byte [ebp + 0x14], 0
jne 0x474867
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0046eb67
mov esi, edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], esi
mov edx, eax
test dword [ebp + 0x14], 0x20000000
je 0x4748d3
cmp dword [ebx + 0x250], 0
je 0x474880
push 0x2d
jmp 0x475078
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x474898
mov eax, dword [eax]
test al, 2
jne 0x4748dc
test al, 1
jne 0x475076
cmp byte [ebp + 0x14], 0
jne 0x475076
push 0
push dword [ebx + 0x244]
mov ecx, ebx
push dword [ebx + 0x240]
call fcn.0046c9ec
cmp esi, edx
ja 0x474c9f
jb 0x474810
cmp dword [ebp + 0xc], eax
jae 0x474c9f
jmp 0x474810
test dword [ebx + 0x14], edi
jne 0x475076
mov eax, dword [ebx + 0x290]
test eax, eax
je 0x474971
cmp byte [ebp + 0x14], 1
ja 0x475076
je 0x474927
mov ecx, edx
or ecx, esi
je 0x474927
mov eax, dword [eax + 0x91c]
test eax, eax
je 0x474810
xor ecx, ecx
cmp esi, ecx
jb 0x474c9f
ja 0x474810
cmp edx, eax
jb 0x474c9f
jmp 0x474810
cmp dx, word [eax + 0xc]
jae 0x474810
test dword [eax + 0x2c], 0x102
movzx ecx, dx
mov edx, dword [eax + 0x48]
movzx ecx, byte [edx + ecx]
je 0x474950
cmp ecx, 0xff
je 0x474810
mov edx, dword [ebp + 0xc]
shr edx, 0x10
test dx, dx
je 0x474c9f
cmp ecx, dword [eax + 0x14]
jge 0x474810
mov eax, dword [eax + 0x40]
cmp dx, word [eax + ecx*2]
jmp 0x47491c
mov eax, dword [ebx + 0x29c]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
test eax, eax
je 0x47499d
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x10]
call dword [eax + 0x18]
test eax, eax
jne 0x474c9f
jmp 0x4747e2
cmp byte [ebp + 0x14], 3
jne 0x474a2a
mov ecx, dword [ebx + 0x28c]
test ecx, ecx
je 0x475076
cmp dword [ecx + 0x2a4], 0
jne 0x475076
mov eax, dword [ecx + 0x2a8]
cmp eax, 1
jg 0x4749d0
xor eax, eax
inc eax
cdq
cmp esi, edx
jb 0x4749e4
ja 0x474810
cmp dword [ebp + 0xc], eax
jae 0x474810
mov edx, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
test edx, edx
je 0x474a08
mov eax, dword [ecx + 0x2ac]
add eax, 8
mov dword [ebp + 8], edx
add esi, dword [eax]
adc edi, dword [eax + 4]
add eax, 0x20
dec dword [ebp + 8]
jne 0x4749fb
mov eax, dword [ecx + 0x290]
imul eax, dword [ecx + 0x28c]
push edi
cdq
push esi
push edx
push eax
call fcn.0047d0fc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jmp 0x474c9f
cmp byte [ebp + 0x14], 0
jne 0x475076
mov eax, edx
or eax, esi
je 0x474c9f
mov edi, dword [ebx + 0x284]
test edi, edi
je 0x474a88
fild qword [ebp + 0xc]
fdiv qword [edi + 0x18]
call fcn.0047d082
push 0
push dword [edi + 0x10]
mov esi, edx
push esi
push eax
mov dword [ebp - 8], eax
call fcn.0047cfcc
sub dword [ebp - 8], eax
mov eax, dword [ebx + 0x27c]
sbb esi, edx
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call fcn.00455f79
test eax, eax
jne 0x474c9f
jmp 0x474810
mov edi, dword [ebx + 0x288]
test edi, edi
je 0x474d23
mov eax, dword [edi + 0x98]
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
push 0
shl eax, 5
push eax
push esi
push dword [ebp + 0xc]
call fcn.0047d19c
test dword [ebp + 0x14], 0x40000000
mov dword [ebp - 0xc], eax
je 0x474ba1
cmp eax, dword [edi + 0x94]
jbe 0x474ba1
mov esi, dword [ebx + 0x27c]
call fcn.00456277
cmp dword [edi + 0x8c], edx
ja 0x474ba1
jb 0x474af4
cmp dword [edi + 0x88], eax
jae 0x474ba1
mov eax, ebx
call fcn.00461c7a
push 0xc620
push edi
mov dword [ebp + 8], 1
call fcn.00451037
mov esi, eax
mov eax, dword [ebx + 0x27c]
call fcn.004561cf
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x474b3a
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + eax*8 - 8]
mov eax, dword [ecx + eax*8 - 4]
jmp 0x474b3e
xor edx, edx
xor eax, eax
push eax
push edx
push dword [ebx + 0x27c]
call fcn.00456148
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0xc]
or eax, 0x80000000
push eax
xor edx, edx
mov ecx, esi
call fcn.0045b236
mov eax, dword [esi + 0x90]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
mov eax, dword [esi + 0xa4]
push esi
mov dword [edi + 0xa4], eax
call fcn.0045105e
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0xa0]
mov dword [ebp - 0x10], eax
cmp ecx, dword [eax + 4]
ja 0x474c6a
jb 0x474bc3
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax]
jae 0x474c6a
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x94]
jbe 0x474c91
mov esi, dword [edi]
call fcn.00456277
cmp byte [edi + 0x11f], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
je 0x474c42
fild qword [ebp + 0xc]
fmul dword [0x5c3bf8]
fild qword [eax]
fdivp st(1)
fld st(0)
call fcn.0047d04c
lea ecx, [eax + edi]
movzx edx, byte [ecx + 0xbc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
cmp eax, 0x63
jge 0x474c1d
movzx eax, byte [ecx + 0xbd]
jmp 0x474c22
mov eax, 0x100
fisub dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xc], eax
fimul dword [ebp - 0xc]
fiadd dword [ebp - 0x10]
fild qword [ebp - 0x20]
fmulp st(1)
fmul dword [0x5c3c44]
call fcn.0047d082
jmp 0x474c53
fild qword [ebp - 0x20]
fild qword [ebp + 0xc]
fmulp st(1)
fild qword [eax]
fdivp st(1)
call fcn.0047d082
push edx
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 0x27c]
mov dword [ebp - 4], edx
call fcn.00455f79
test eax, eax
jne 0x474c99
cmp dword [ebp + 8], 0
je 0x474810
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebx + 0x27c]
call fcn.00456148
mov eax, ebx
call fcn.00461c87
jmp 0x474810
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x474ca6
mov eax, ebx
call fcn.00461c7a
or dword [ebx + 0x260], 0x20
xor esi, esi
cmp dword [ebx + 0x20], esi
je 0x474cc5
mov eax, dword [ebx + 0x260]
mov dword [ebp - 0x10], 1
test al, 2
je 0x474cc8
mov dword [ebp - 0x10], esi
test dword [ebp + 0x14], 0x20000000
mov dword [ebp - 0xc], esi
je 0x474d78
push esi
push dword [ebx + 0x244]
mov ecx, ebx
push dword [ebx + 0x240]
call fcn.0046c9ec
mov edi, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], esi
je 0x474d0b
push 1
mov esi, ebx
call fcn.0046d638
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0046eb8f
xor esi, esi
mov eax, dword [ebx + 0x29c]
cmp eax, esi
je 0x474fb0
test byte [eax], 2
jne 0x474d92
jmp 0x474fb0
mov ecx, dword [ebx + 0x28c]
test ecx, ecx
je 0x474d71
cmp esi, dword [ecx + 0x284]
jb 0x474d47
ja 0x474810
cmp edx, dword [ecx + 0x280]
jae 0x474810
mov eax, dword [ebx + 0x27c]
cmp dword [eax], 0
je 0x474c9f
call fcn.0046170d
cmp esi, edx
jb 0x474c9f
ja 0x474810
cmp dword [ebp + 0xc], eax
jmp 0x47491c
push 0x1b
jmp 0x475078
cmp dword [ebp - 0x10], esi
je 0x474d92
push 1
mov esi, ebx
call fcn.0046d638
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0046eb8f
xor esi, esi
mov eax, dword [ebx + 0x290]
cmp eax, esi
je 0x474daf
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
call fcn.00472e10
push esi
push esi
jmp 0x475028
test dword [ebp + 0x14], 0x2000000
je 0x474dec
mov eax, dword [ebx + 0x27c]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
or dword [edi], 4
mov eax, dword [edi]
test al, 8
je 0x474dec
and dword [edi], 0xfffffff7
lea esi, [edi + 0x44]
cmp dword [esi], 0
je 0x474dec
call fcn.0045128a
push 0
push edi
push 0x46c715
call fcn.00451239
mov esi, dword [ebx + 0x298]
test esi, esi
je 0x474dfd
push 1
call fcn.00461c4f
mov esi, dword [ebx + 0x284]
test esi, esi
je 0x474e45
fild qword [ebp - 8]
fmul qword [esi + 0x18]
fadd qword [0x5c39e8]
call fcn.0047d082
push edx
push eax
mov ecx, ebx
call fcn.0046eb67
push dword [ebp - 4]
mov edi, eax
push dword [ebp - 8]
mov dword [ebp - 0x14], edx
call fcn.00457df4
mov eax, dword [ebx + 0x284]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], ecx
jmp 0x474efb
mov esi, dword [ebx + 0x288]
test esi, esi
je 0x474eda
mov eax, dword [ebp - 8]
and eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x474e77
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, edi
or ecx, eax
je 0x474e97
push 1
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
jmp 0x474ed1
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x474e97
push 0
push dword [esi + 0x98]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0047d19c
mov dword [ebp + 8], eax
jmp 0x474e9b
and dword [ebp + 8], 0
test dword [ebp + 0x14], 0x8000000
jne 0x474eb2
push 4
pop eax
cmp dword [ebp + 8], eax
ja 0x474eaf
mov eax, dword [ebp + 8]
sub dword [ebp + 8], eax
xor eax, eax
push eax
push dword [ebp + 8]
push eax
push dword [esi + 0x98]
call fcn.0047d0fc
mov edi, eax
push 0
xor eax, eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, esi
call fcn.0045afe2
jmp 0x474efb
mov edi, dword [ebx + 0x28c]
test edi, edi
je 0x474ef6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0046141c
mov edi, eax
mov dword [ebp - 0x14], edx
jmp 0x474efb
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x474f70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x10]
call dword [eax + 0x1c]
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x474f49
push 0
mov esi, ebx
call fcn.0046d638
cmp dword [ebx + 0x20], 0
jne 0x474f36
mov dword [ebx + 0x250], 1
and dword [ebx + 0x260], 0xffffffdf
mov eax, ebx
call fcn.00461c87
jmp 0x4747e2
push edx
push eax
mov ecx, ebx
call fcn.0046eb67
mov edi, eax
mov eax, dword [ebx + 0x29c]
test byte [eax], 1
mov dword [ebp - 0x14], edx
jne 0x475024
cmp dword [eax + 0x24], 0
jne 0x475024
cmp byte [ebp + 0x14], 0
jne 0x475024
test dword [ebp + 0x14], 0x8000000
jne 0x475024
mov eax, dword [ebx + 8]
imul eax, dword [ebx + 4]
imul eax, dword [ebx]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub esi, edi
sbb ecx, dword [ebp - 0x14]
cdq
cmp ecx, edx
jb 0x474fb0
ja 0x474fa7
cmp esi, eax
jb 0x474fb0
cmp dword [ebx + 0x28c], 0
je 0x475024
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], eax
jb 0x475024
mov eax, dword [ebp + 0xc]
ja 0x474fc1
cmp eax, edi
jbe 0x475024
sub eax, edi
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x20]
mov ecx, 0x4000
mov dword [ebp + 8], ecx
test eax, eax
je 0x474fdf
mov eax, dword [eax + 0x24]
cmp eax, ecx
jae 0x474fdf
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0x14]
jb 0x474fea
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x475000
push ebx
push esi
push 0
push dword [ebx + 0x1c]
call fcn.0046ef33
jmp 0x475010
push dword [ebx + 0x10]
lea ecx, [ebp - 0x4020]
push esi
push ecx
push dword [ebx + 0x1c]
call eax
mov ecx, eax
movzx eax, cx
cdq
add edi, eax
adc dword [ebp - 0x14], edx
cmp ecx, esi
jne 0x475024
sub dword [ebp + 0x14], ecx
jne 0x474fdf
push dword [ebp - 0x14]
push edi
mov eax, ebx
call fcn.0046ed92
push dword [ebp - 0x10]
and dword [ebx + 0x250], 0
or dword [ebx + 0x260], 0x80
push 0xb
mov esi, ebx
call fcn.0046cc26
cmp dword [ebp - 0xc], 0
je 0x47505d
push 0
mov edi, ebx
call fcn.004724f7
jmp 0x475062
call fcn.00451110
and dword [ebx + 0x260], 0xffffffdf
mov esi, eax
mov eax, ebx
call fcn.00461c87
mov eax, esi
jmp 0x47507d
push 0x25
call fcn.00451100
pop edi
pop esi
pop ebx
leave
ret 0x10