Function at 0x4ad025
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x574017
call fcn.00566e38
sub esp, 0x500
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp + 0x34], ebx
call fcn.004ab561
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x30c]
push 0x200
call fcn.00414a6e
test eax, eax
jne 0x4ad99d
lea eax, [ebp - 0x30c]
lea edi, [ebx + 0x20]
push eax
mov ecx, edi
call fcn.004adb98
test al, al
je 0x4ad99a
mov eax, dword [ebx + 0x18]
lea edx, [ebp + 0x40]
push edx
push 2
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push eax
mov dword [ebp + 0x1c], edx
call dword [ecx + 0x10]
test eax, eax
jne 0x4ad99d
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
call fcn.00567120
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
cmp dword [ebp + 0x44], edx
jb 0x4ad99a
ja 0x4ad0c0
cmp dword [ebp + 0x40], eax
jb 0x4ad99a
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
add eax, 1
push 0
pop ecx
adc edx, ecx
mov ecx, dword [edi]
call fcn.00567120
mov ecx, edx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x50], ecx
cmp dword [ebp + 0x44], ecx
jb 0x4ad14c
ja 0x4ad0e9
cmp dword [ebp + 0x40], eax
jb 0x4ad14c
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [edi]
call fcn.00567120
mov ecx, dword [ebx + 0x18]
push 0
push 0
push edx
mov esi, dword [ecx]
push eax
push ecx
call dword [esi + 0x10]
test eax, eax
jne 0x4ad99d
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x50c]
mov esi, 0x200
push esi
call fcn.00414a6e
test eax, eax
jne 0x4ad14c
push esi
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4ad14c
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0x54], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.004aeccb
mov ecx, dword [ebx + 0x28]
xor esi, esi
inc esi
mov eax, 0x8000
shl esi, cl
cmp esi, eax
mov dword [ebp + 0x38], esi
mov ecx, esi
cmovb ecx, eax
mov dword [ebp + 0x54], ecx
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00405117
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x18]
push esi
call fcn.00414a6e
test eax, eax
jne 0x4ad99d
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 0x1c], esi
jne 0x4ad99a
mov ecx, dword [ebx + 0x28]
xor esi, esi
sub ecx, dword [edi]
inc esi
xor eax, eax
shl esi, cl
mov edi, eax
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x28], edi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], eax
call fcn.004aaf81
xor eax, eax
mov byte [ebp - 4], 1
push eax
push eax
push esi
push dword [ebx + 0x20]
lea ecx, [ebp - 0x9c]
push dword [ebx + 0x5c]
call fcn.004add30
test al, al
je 0x4ad975
cmp dword [ebp - 0x9c], 0x454c4946
jne 0x4ad975
lea ecx, [ebp - 0x9c]
call fcn.004ae09d
cmp dword [ebp - 0x68], edi
je 0x4ad975
lea eax, [ebp + 0x28]
push eax
push dword [ebx + 0x3c]
xor eax, eax
lea ecx, [ebp - 0x9c]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push eax
push dword [ebx + 0x18]
call fcn.004aca2e
mov edi, dword [ebp + 0x28]
test eax, eax
jne 0x4ad978
mov dword [ebp + 0x30], edi
test edi, edi
je 0x4ad975
mov eax, dword [ebp - 0x84]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x20], esi
call fcn.00567120
mov ecx, dword [ebp + 0x58]
shrd esi, ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x4ad27c
ja 0x4ad975
cmp esi, eax
ja 0x4ad975
mov eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x28]
call fcn.00567140
mov esi, eax
mov dword [ebp + 0x50], edx
xor eax, eax
mov dword [ebp + 0x4c], esi
cmp edx, eax
ja 0x4ad975
cmp esi, 0x40000000
ja 0x4ad975
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x4ad2c8
mov eax, dword [ecx]
lea edx, [ebp + 0x20]
push edx
lea edx, [ebp + 0x4c]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x4ad978
mov esi, dword [ebp + 0x4c]
lea ecx, [ebx + 0xc]
call fcn.004ab50a
push esi
lea ecx, [ebx + 0xc]
call fcn.0040e21a
xorps xmm0, xmm0
movlpd qword [ebp + 0x4c], xmm0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x4ad312
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp + 0x14], eax
and eax, 0x3fff
or eax, edx
mov dword [ebp + 0x18], edx
jne 0x4ad312
mov eax, dword [ecx]
lea edx, [ebp + 0x4c]
push edx
lea edx, [ebp + 0x14]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x4ad978
mov ecx, dword [ebp + 0x20]
sub ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x54]
mov esi, edx
sbb eax, dword [ebp + 0x50]
mov dword [ebp + 0x3c], esi
cmp dword [ebp + 0x1c], eax
jb 0x4ad336
ja 0x4ad331
cmp edx, ecx
jbe 0x4ad336
mov esi, ecx
mov dword [ebp + 0x3c], ecx
cmp esi, dword [ebp + 0x38]
jb 0x4ad3ec
mov edx, dword [ebx + 0x5c]
mov ecx, edi
push esi
call fcn.00414a6e
test eax, eax
jne 0x4ad978
add dword [ebp + 0x4c], esi
mov edx, eax
mov dword [ebp + 0x58], edx
adc dword [ebp + 0x50], eax
mov esi, dword [ebx + 0x5c]
lea ecx, [ebp - 0x10c]
add esi, edx
call fcn.004aaf81
xor ecx, ecx
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x10], 3
lea eax, [ebx + 0x64]
cmovne eax, ecx
lea ecx, [ebp - 0x10c]
push eax
push dword [ebx + 0x10]
push dword [ebp + 0x44]
push dword [ebx + 0x20]
push esi
call fcn.004add30
test al, al
je 0x4ad3d9
lea ecx, [ebx + 0xc]
call fcn.0040393c
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebx + 0xc]
call fcn.004ab3ea
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.004ab1c2
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x58]
sub eax, ecx
add edx, ecx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x58], edx
cmp eax, ecx
jae 0x4ad35d
jmp 0x4ad2e1
lea ecx, [ebp - 0x10c]
call fcn.004ab1c2
xor ebx, ebx
inc ebx
jmp 0x4ad97a
mov ecx, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp + 0x58], edx
mov esi, edx
test ecx, ecx
je 0x4ad485
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + esi*4]
cmp dword [esi], 0x454c4946
jne 0x4ad471
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
or eax, edx
je 0x4ad471
movzx eax, dx
test eax, eax
ja 0x4ad3e4
mov eax, dword [esi + 8]
jb 0x4ad426
cmp eax, ecx
jae 0x4ad3e4
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0x454c4946
jne 0x4ad471
shr edx, 0x10
cmp word [ecx + 4], dx
jne 0x4ad44a
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x4ad44a
inc eax
mov dh, al
jmp 0x4ad44f
xor eax, eax
mov dh, al
inc eax
mov dl, byte [ecx + 6]
and dl, al
test byte [esi + 6], al
je 0x4ad463
test dl, dl
je 0x4ad471
test dh, dh
je 0x4ad3e4
jmp 0x4ad46b
test dl, dl
jne 0x4ad471
test dh, dh
je 0x4ad471
push esi
call fcn.004acfc4
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x10]
inc esi
mov dword [ebp + 0x58], esi
cmp esi, ecx
jb 0x4ad3fe
xor edx, edx
mov esi, edx
test ecx, ecx
je 0x4ad4a8
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
cmp dword [ecx], 0x454c4946
jne 0x4ad49e
call fcn.004ae09d
mov ecx, dword [ebx + 0x10]
inc esi
cmp esi, ecx
jb 0x4ad48b
xor edx, edx
mov dword [ebp + 0x54], edx
test ecx, ecx
je 0x4ad6da
mov edi, edx
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp + 0x50], esi
cmp dword [esi], 0x454c4946
jne 0x4ad6c8
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4ad6c8
cmp edi, 0x10
jae 0x4ad4e7
cmp byte [ebx + 0x85], al
je 0x4ad6c8
xor ecx, ecx
inc ecx
test byte [esi + 6], cl
jne 0x4ad4fc
cmp byte [ebx + 0x86], 0
je 0x4ad6c8
mov eax, dword [esi + 0x28]
mov dword [esi + 0x10], eax
or eax, 0xffffffff
mov dword [ebp + 0x38], eax
mov al, byte [esi + 6]
shr al, 1
test cl, al
jne 0x4ad53e
cmp dword [esi + 0x34], 0
mov ecx, edx
jbe 0x4ad53e
mov edx, dword [esi + 0x30]
mov ebx, dword [esi + 0x18]
mov eax, dword [edx]
mov eax, dword [ebx + eax*4]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
mov ebx, dword [ebp + 0x34]
je 0x4ad539
inc ecx
add edx, 8
cmp ecx, dword [esi + 0x34]
jb 0x4ad51c
jmp 0x4ad53c
mov dword [ebp + 0x38], ecx
xor edx, edx
cmp dword [esi + 0x28], edx
jne 0x4ad5be
cmp edi, 0x10
jae 0x4ad56f
cmp dword [esi + 0x34], 0
mov eax, edx
mov dword [ebp + 0x58], edx
jbe 0x4ad5be
push eax
mov ecx, esi
call fcn.004ac98e
or eax, edx
jne 0x4ad56f
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x34]
jb 0x4ad553
xor edx, edx
jmp 0x4ad5be
lea ecx, [esi + 0x24]
call fcn.004ab476
or ecx, 0xffffffff
mov dword [ebp + 0x58], eax
lea edx, [ebp - 0x2c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, str._NONAME__
mov eax, edx
mov byte [ebp - 0x2c], 0x5b
sub ecx, eax
inc edx
mov al, byte [edx + ecx]
mov byte [edx], al
test al, al
jne 0x4ad592
mov ecx, edi
call fcn.00401c5c
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x2c]
push eax
add ecx, 8
call fcn.00403ad6
mov eax, dword [ebp + 0x58]
xor edx, edx
mov byte [eax + 0x14], 3
mov dword [eax + 0x10], edx
mov eax, edx
mov dword [ebp + 0x58], edx
cmp dword [esi + 0x28], edx
jbe 0x4ad6c8
push eax
mov ecx, esi
call fcn.004abdd0
test eax, eax
js 0x4ad5e2
dec dword [esi + 0x10]
xor edx, edx
jmp 0x4ad6b8
mov cl, byte [esi + 6]
or eax, 0xffffffff
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov eax, edx
shr cl, 1
test edx, edx
push 0xffffffffffffffff
pop edx
cmovs eax, edx
mov dword [ebp], edi
test cl, 1
push 0xfffffffffffffffe
pop ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [esi + 0x14], eax
jge 0x4ad61f
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
sub esp, 0x14
lea esi, [ebp]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004ab339
mov esi, dword [ebp + 0x50]
xor edx, edx
mov ecx, edx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x3c], ecx
cmp dword [esi + 0x34], edx
jbe 0x4ad6b5
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x4ad653
cmp ecx, dword [ebp + 0x38]
je 0x4ad6b0
mov eax, dword [esi + 0x30]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax + ecx*8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
add ecx, 8
cmp edi, 8
jne 0x4ad678
mov edx, str._Bad
call fcn.004028b4
test al, al
jne 0x4ad69f
mov eax, dword [ebp + 0x3c]
lea esi, [ebp]
sub esp, 0x14
mov dword [ebp + 8], eax
mov byte [ebx + 0x84], 1
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004ab339
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x3c]
inc ecx
mov dword [ebp + 0x3c], ecx
cmp ecx, dword [esi + 0x34]
jb 0x4ad645
jmp 0x4ad5db
mov edi, dword [ebp + 0x54]
jmp 0x4ad6a2
mov edi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x28]
jb 0x4ad5cc
mov ecx, dword [ebx + 0x10]
inc edi
mov dword [ebp + 0x54], edi
cmp edi, ecx
jb 0x4ad4b5
mov edi, dword [ebp + 0x30]
cmp ecx, 9
jbe 0x4ad7e1
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x24]
xor eax, eax
mov dword [ebp + 0x50], edx
mov esi, eax
cmp dword [edx + 0x34], eax
jbe 0x4ad7e1
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + esi*8]
mov eax, dword [edx + 0x18]
mov edx, str._SDS
mov ecx, dword [eax + ecx*4]
mov dword [ebp + 0x44], ecx
add ecx, 8
call fcn.004028b4
test al, al
jne 0x4ad727
mov edx, dword [ebp + 0x50]
inc esi
cmp esi, dword [edx + 0x34]
jb 0x4ad6f9
jmp 0x4ad7e1
xor eax, eax
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x50]
lea eax, [ebp + 0x58]
push eax
push dword [ebx + 0x3c]
mov byte [ebp - 4], 0x10
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push esi
push dword [ebx + 0x18]
call fcn.004aca2e
mov esi, eax
test esi, esi
je 0x4ad767
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x4ad760
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, esi
jmp 0x4ad97a
mov esi, dword [ebp + 0x58]
test esi, esi
je 0x4ad7cf
mov eax, dword [ebp + 0x44]
cmp byte [eax + 4], 0
je 0x4ad77f
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x4ad784
mov ecx, dword [eax + 0x14]
xor eax, eax
xor edx, edx
cmp eax, edx
ja 0x4ad7cf
jb 0x4ad794
cmp ecx, 0x20000000
jae 0x4ad7cf
lea eax, [ecx + 1]
mov edx, 0x40000
test edx, eax
je 0x4ad7cf
sub ecx, edx
mov dword [ebp + 0x44], ecx
push ecx
lea ecx, [ebx + 0x70]
call fcn.00405117
push dword [ebp + 0x44]
mov edx, dword [ebx + 0x70]
mov ecx, esi
call fcn.00414a6e
mov ebx, dword [ebp + 0x34]
test eax, eax
jne 0x4ad7cf
mov ecx, ebx
call fcn.004ae377
mov byte [ebp - 4], 0x13
jmp 0x4ad7d7
mov byte [ebp - 4], 0x14
test esi, esi
je 0x4ad7dd
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
xor edx, edx
mov byte [ebp + 0x4b], dl
mov byte [ebp + 0x4a], dl
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x54], eax
test eax, eax
je 0x4ad88c
xor eax, eax
mov esi, eax
mov ecx, dword [ebx]
mov edi, dword [ebx + 0xc]
mov eax, dword [ecx + esi]
mov ecx, dword [ecx + esi + 4]
mov eax, dword [edi + eax*4]
mov dword [ebp + 0x44], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
movzx eax, di
cmp ecx, 5
jne 0x4ad82c
test eax, eax
jne 0x4ad82c
or eax, 0xffffffff
jmp 0x4ad86b
push eax
push ecx
mov ecx, ebx
call fcn.004abe17
test eax, eax
js 0x4ad850
mov edx, dword [ebx]
imul ecx, eax, 0x14
shr edi, 0x10
mov ecx, dword [ecx + edx]
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + ecx*4]
cmp word [ecx + 4], di
je 0x4ad868
mov ecx, dword [ebp + 0x44]
xor eax, eax
inc eax
test byte [ecx + 6], al
je 0x4ad862
mov byte [ebp + 0x4b], al
push 0xfffffffffffffffe
jmp 0x4ad867
mov byte [ebp + 0x4a], al
push 0xfffffffffffffffd
pop eax
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebx]
inc edx
mov dword [ebp + 0x34], edx
mov dword [ecx + esi + 0xc], eax
add esi, 0x14
mov edi, dword [ebx + 4]
mov dword [ebp + 0x54], edi
cmp edx, edi
jb 0x4ad7fe
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x54]
cmp byte [ebx + 0x85], 0
je 0x4ad8db
mov dword [ebx + 0xa0], eax
lea ecx, [ebp + 0x40]
inc eax
push str._SYSTEM_
mov dword [ebp + 0x54], eax
call fcn.004023ba
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.0040393c
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004ab430
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x4ad8db
push dword [ebp + 0x40]
call fcn.00566e0e
pop ecx
cmp byte [ebp + 0x4b], 0
je 0x4ad92a
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x40]
mov dword [ebx + 0xa4], eax
inc eax
push str._LOST_
mov dword [ebp + 0x54], eax
call fcn.004023ba
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x17
mov ecx, esi
call fcn.0040393c
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004ab430
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x4ad92a
push dword [ebp + 0x40]
call fcn.00566e0e
pop ecx
cmp byte [ebp + 0x4a], 0
je 0x4ad971
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x2c]
push str._UNKNOWN_
mov dword [ebx + 0xa8], eax
call fcn.004023ba
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x18
mov ecx, esi
call fcn.0040393c
lea eax, [ebp + 0x2c]
mov ecx, esi
push eax
call fcn.004ab430
cmp dword [ebp + 0x2c], 0
je 0x4ad971
push dword [ebp + 0x2c]
call fcn.00566e0e
pop ecx
xor eax, eax
jmp 0x4ad978
xor eax, eax
inc eax
mov ebx, eax
lea ecx, [ebp - 0x9c]
call fcn.004ab1c2
mov dword [ebp - 4], 0x19
test edi, edi
je 0x4ad996
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, ebx
jmp 0x4ad99d
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x5c
leave
ret