Function at 0x478c61
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4024
call fcn.0048163c
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 0x479546
cmp eax, 0xfffffffe
je 0x479546
cmp eax, 0xfffffffd
je 0x479546
test dword [ebp + 0x14], 0x4000000
je 0x478cc6
push dword [ebp + 0x14]
push dword [ebx + 0x1c]
call fcn.004795b6
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x478cb9
xor eax, eax
jmp 0x47954d
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
adc esi, edx
mov dword [ebp + 0x10], esi
jmp 0x478cc9
mov esi, dword [ebp + 0x10]
test dword [ebp + 0x14], 0x2000000
mov edx, dword [ebp + 0xc]
mov edi, 0x100000
je 0x478d1c
mov eax, edx
or eax, esi
je 0x478ce7
push 7
jmp 0x479548
and dword [ebp + 0x14], 0xdfffffff
cmp byte [ebp + 0x14], 0
jne 0x478d15
mov eax, dword [ebx + 0x27c]
test eax, eax
je 0x478d15
cmp dword [eax + 0x3c], 0
jne 0x478d15
cmp dword [eax], 0
je 0x478d15
mov eax, dword [eax]
mov eax, dword [eax]
test edi, eax
jne 0x478dac
and dword [ebp + 0x14], 0xfdffffff
cmp byte [ebp + 0x14], 0
jne 0x478d37
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00473037
mov esi, edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], esi
mov edx, eax
test dword [ebp + 0x14], 0x20000000
je 0x478da3
cmp dword [ebx + 0x250], 0
je 0x478d50
push 0x2d
jmp 0x479548
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x478d68
mov eax, dword [eax]
test al, 2
jne 0x478dac
test al, 1
jne 0x479546
cmp byte [ebp + 0x14], 0
jne 0x479546
push 0
push dword [ebx + 0x244]
mov ecx, ebx
push dword [ebx + 0x240]
call fcn.00470ebc
cmp esi, edx
ja 0x47916f
jb 0x478ce0
cmp dword [ebp + 0xc], eax
jae 0x47916f
jmp 0x478ce0
test dword [ebx + 0x14], edi
jne 0x479546
mov eax, dword [ebx + 0x290]
test eax, eax
je 0x478e41
cmp byte [ebp + 0x14], 1
ja 0x479546
je 0x478df7
mov ecx, edx
or ecx, esi
je 0x478df7
mov eax, dword [eax + 0x91c]
test eax, eax
je 0x478ce0
xor ecx, ecx
cmp esi, ecx
jb 0x47916f
ja 0x478ce0
cmp edx, eax
jb 0x47916f
jmp 0x478ce0
cmp dx, word [eax + 0xc]
jae 0x478ce0
test dword [eax + 0x2c], 0x102
movzx ecx, dx
mov edx, dword [eax + 0x48]
movzx ecx, byte [edx + ecx]
je 0x478e20
cmp ecx, 0xff
je 0x478ce0
mov edx, dword [ebp + 0xc]
shr edx, 0x10
test dx, dx
je 0x47916f
cmp ecx, dword [eax + 0x14]
jge 0x478ce0
mov eax, dword [eax + 0x40]
cmp dx, word [eax + ecx*2]
jmp 0x478dec
mov eax, dword [ebx + 0x29c]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
test eax, eax
je 0x478e6d
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x10]
call dword [eax + 0x18]
test eax, eax
jne 0x47916f
jmp 0x478cb2
cmp byte [ebp + 0x14], 3
jne 0x478efa
mov ecx, dword [ebx + 0x28c]
test ecx, ecx
je 0x479546
cmp dword [ecx + 0x2a4], 0
jne 0x479546
mov eax, dword [ecx + 0x2a8]
cmp eax, 1
jg 0x478ea0
xor eax, eax
inc eax
cdq
cmp esi, edx
jb 0x478eb4
ja 0x478ce0
cmp dword [ebp + 0xc], eax
jae 0x478ce0
mov edx, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
test edx, edx
je 0x478ed8
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 0x478ecb
mov eax, dword [ecx + 0x290]
imul eax, dword [ecx + 0x28c]
push edi
cdq
push esi
push edx
push eax
call fcn.004815cc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jmp 0x47916f
cmp byte [ebp + 0x14], 0
jne 0x479546
mov eax, edx
or eax, esi
je 0x47916f
mov edi, dword [ebx + 0x284]
test edi, edi
je 0x478f58
fild qword [ebp + 0xc]
fdiv qword [edi + 0x18]
call fcn.00481552
push 0
push dword [edi + 0x10]
mov esi, edx
push esi
push eax
mov dword [ebp - 8], eax
call fcn.0048149c
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.0045a449
test eax, eax
jne 0x47916f
jmp 0x478ce0
mov edi, dword [ebx + 0x288]
test edi, edi
je 0x4791f3
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.0048166c
test dword [ebp + 0x14], 0x40000000
mov dword [ebp - 0xc], eax
je 0x479071
cmp eax, dword [edi + 0x94]
jbe 0x479071
mov esi, dword [ebx + 0x27c]
call fcn.0045a747
cmp dword [edi + 0x8c], edx
ja 0x479071
jb 0x478fc4
cmp dword [edi + 0x88], eax
jae 0x479071
mov eax, ebx
call fcn.0046614a
push 0xc620
push edi
mov dword [ebp + 8], 1
call fcn.00455507
mov esi, eax
mov eax, dword [ebx + 0x27c]
call fcn.0045a69f
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x47900a
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + eax*8 - 8]
mov eax, dword [ecx + eax*8 - 4]
jmp 0x47900e
xor edx, edx
xor eax, eax
push eax
push edx
push dword [ebx + 0x27c]
call fcn.0045a618
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.0045f706
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.0045552e
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0xa0]
mov dword [ebp - 0x10], eax
cmp ecx, dword [eax + 4]
ja 0x47913a
jb 0x479093
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax]
jae 0x47913a
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x94]
jbe 0x479161
mov esi, dword [edi]
call fcn.0045a747
cmp byte [edi + 0x11f], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
je 0x479112
fild qword [ebp + 0xc]
fmul dword [0x5c5e98]
fild qword [eax]
fdivp st(1)
fld st(0)
call fcn.0048151c
lea ecx, [eax + edi]
movzx edx, byte [ecx + 0xbc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
cmp eax, 0x63
jge 0x4790ed
movzx eax, byte [ecx + 0xbd]
jmp 0x4790f2
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 [0x5c5ee4]
call fcn.00481552
jmp 0x479123
fild qword [ebp - 0x20]
fild qword [ebp + 0xc]
fmulp st(1)
fild qword [eax]
fdivp st(1)
call fcn.00481552
push edx
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 0x27c]
mov dword [ebp - 4], edx
call fcn.0045a449
test eax, eax
jne 0x479169
cmp dword [ebp + 8], 0
je 0x478ce0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebx + 0x27c]
call fcn.0045a618
mov eax, ebx
call fcn.00466157
jmp 0x478ce0
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x479176
mov eax, ebx
call fcn.0046614a
or dword [ebx + 0x260], 0x20
xor esi, esi
cmp dword [ebx + 0x20], esi
je 0x479195
mov eax, dword [ebx + 0x260]
mov dword [ebp - 0x10], 1
test al, 2
je 0x479198
mov dword [ebp - 0x10], esi
test dword [ebp + 0x14], 0x20000000
mov dword [ebp - 0xc], esi
je 0x479248
push esi
push dword [ebx + 0x244]
mov ecx, ebx
push dword [ebx + 0x240]
call fcn.00470ebc
mov edi, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], esi
je 0x4791db
push 1
mov esi, ebx
call fcn.00471b08
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0047305f
xor esi, esi
mov eax, dword [ebx + 0x29c]
cmp eax, esi
je 0x479480
test byte [eax], 2
jne 0x479262
jmp 0x479480
mov ecx, dword [ebx + 0x28c]
test ecx, ecx
je 0x479241
cmp esi, dword [ecx + 0x284]
jb 0x479217
ja 0x478ce0
cmp edx, dword [ecx + 0x280]
jae 0x478ce0
mov eax, dword [ebx + 0x27c]
cmp dword [eax], 0
je 0x47916f
call fcn.00465bdd
cmp esi, edx
jb 0x47916f
ja 0x478ce0
cmp dword [ebp + 0xc], eax
jmp 0x478dec
push 0x1b
jmp 0x479548
cmp dword [ebp - 0x10], esi
je 0x479262
push 1
mov esi, ebx
call fcn.00471b08
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0047305f
xor esi, esi
mov eax, dword [ebx + 0x290]
cmp eax, esi
je 0x47927f
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
call fcn.004772e0
push esi
push esi
jmp 0x4794f8
test dword [ebp + 0x14], 0x2000000
je 0x4792bc
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 0x4792bc
and dword [edi], 0xfffffff7
lea esi, [edi + 0x44]
cmp dword [esi], 0
je 0x4792bc
call fcn.0045575a
push 0
push edi
push 0x470be5
call fcn.00455709
mov esi, dword [ebx + 0x298]
test esi, esi
je 0x4792cd
push 1
call fcn.0046611f
mov esi, dword [ebx + 0x284]
test esi, esi
je 0x479315
fild qword [ebp - 8]
fmul qword [esi + 0x18]
fadd qword [0x5c5c88]
call fcn.00481552
push edx
push eax
mov ecx, ebx
call fcn.00473037
push dword [ebp - 4]
mov edi, eax
push dword [ebp - 8]
mov dword [ebp - 0x14], edx
call fcn.0045c2c4
mov eax, dword [ebx + 0x284]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], ecx
jmp 0x4793cb
mov esi, dword [ebx + 0x288]
test esi, esi
je 0x4793aa
mov eax, dword [ebp - 8]
and eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x479347
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, edi
or ecx, eax
je 0x479367
push 1
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
jmp 0x4793a1
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x479367
push 0
push dword [esi + 0x98]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0048166c
mov dword [ebp + 8], eax
jmp 0x47936b
and dword [ebp + 8], 0
test dword [ebp + 0x14], 0x8000000
jne 0x479382
push 4
pop eax
cmp dword [ebp + 8], eax
ja 0x47937f
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.004815cc
mov edi, eax
push 0
xor eax, eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, esi
call fcn.0045f4b2
jmp 0x4793cb
mov edi, dword [ebx + 0x28c]
test edi, edi
je 0x4793c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004658ec
mov edi, eax
mov dword [ebp - 0x14], edx
jmp 0x4793cb
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x479440
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 0x479419
push 0
mov esi, ebx
call fcn.00471b08
cmp dword [ebx + 0x20], 0
jne 0x479406
mov dword [ebx + 0x250], 1
and dword [ebx + 0x260], 0xffffffdf
mov eax, ebx
call fcn.00466157
jmp 0x478cb2
push edx
push eax
mov ecx, ebx
call fcn.00473037
mov edi, eax
mov eax, dword [ebx + 0x29c]
test byte [eax], 1
mov dword [ebp - 0x14], edx
jne 0x4794f4
cmp dword [eax + 0x24], 0
jne 0x4794f4
cmp byte [ebp + 0x14], 0
jne 0x4794f4
test dword [ebp + 0x14], 0x8000000
jne 0x4794f4
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 0x479480
ja 0x479477
cmp esi, eax
jb 0x479480
cmp dword [ebx + 0x28c], 0
je 0x4794f4
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], eax
jb 0x4794f4
mov eax, dword [ebp + 0xc]
ja 0x479491
cmp eax, edi
jbe 0x4794f4
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 0x4794af
mov eax, dword [eax + 0x24]
cmp eax, ecx
jae 0x4794af
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0x14]
jb 0x4794ba
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x4794d0
push ebx
push esi
push 0
push dword [ebx + 0x1c]
call fcn.00473403
jmp 0x4794e0
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 0x4794f4
sub dword [ebp + 0x14], ecx
jne 0x4794af
push dword [ebp - 0x14]
push edi
mov eax, ebx
call fcn.00473262
push dword [ebp - 0x10]
and dword [ebx + 0x250], 0
or dword [ebx + 0x260], 0x80
push 0xb
mov esi, ebx
call fcn.004710f6
cmp dword [ebp - 0xc], 0
je 0x47952d
push 0
mov edi, ebx
call fcn.004769c7
jmp 0x479532
call fcn.004555e0
and dword [ebx + 0x260], 0xffffffdf
mov esi, eax
mov eax, ebx
call fcn.00466157
mov eax, esi
jmp 0x47954d
push 0x25
call fcn.004555d0
pop edi
pop esi
pop ebx
leave
ret 0x10