Function at 0x4ad0b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x573627
call fcn.00566548
sub esp, 0x500
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp + 0x34], ebx
call fcn.004ab5fa
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x30c]
push 0x200
call fcn.00414ae5
test eax, eax
jne 0x4ada28
lea eax, [ebp - 0x30c]
lea edi, [ebx + 0x20]
push eax
mov ecx, edi
call fcn.004adc23
test al, al
je 0x4ada25
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 0x4ada28
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
call fcn.00566830
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
cmp dword [ebp + 0x44], edx
jb 0x4ada25
ja 0x4ad14b
cmp dword [ebp + 0x40], eax
jb 0x4ada25
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.00566830
mov ecx, edx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x50], ecx
cmp dword [ebp + 0x44], ecx
jb 0x4ad1d7
ja 0x4ad174
cmp dword [ebp + 0x40], eax
jb 0x4ad1d7
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov ecx, dword [edi]
call fcn.00566830
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 0x4ada28
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x50c]
mov esi, 0x200
push esi
call fcn.00414ae5
test eax, eax
jne 0x4ad1d7
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 0x4ad1d7
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.004aed58
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.00405170
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x18]
push esi
call fcn.00414ae5
test eax, eax
jne 0x4ada28
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 0x1c], esi
jne 0x4ada25
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.004ab01a
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.004addbb
test al, al
je 0x4ada00
cmp dword [ebp - 0x9c], 0x454c4946
jne 0x4ada00
lea ecx, [ebp - 0x9c]
call fcn.004ae128
cmp dword [ebp - 0x68], edi
je 0x4ada00
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.004acad0
mov edi, dword [ebp + 0x28]
test eax, eax
jne 0x4ada03
mov dword [ebp + 0x30], edi
test edi, edi
je 0x4ada00
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.00566830
mov ecx, dword [ebp + 0x58]
shrd esi, ecx, 4
shr ecx, 4
cmp ecx, edx
jb 0x4ad307
ja 0x4ada00
cmp esi, eax
ja 0x4ada00
mov eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x28]
call fcn.00566850
mov esi, eax
mov dword [ebp + 0x50], edx
xor eax, eax
mov dword [ebp + 0x4c], esi
cmp edx, eax
ja 0x4ada00
cmp esi, 0x40000000
ja 0x4ada00
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x4ad353
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 0x4ada03
mov esi, dword [ebp + 0x4c]
lea ecx, [ebx + 0xc]
call fcn.004ab5a3
push esi
lea ecx, [ebx + 0xc]
call fcn.0040e276
xorps xmm0, xmm0
movlpd qword [ebp + 0x4c], xmm0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x4ad39d
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 0x4ad39d
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 0x4ada03
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 0x4ad3c1
ja 0x4ad3bc
cmp edx, ecx
jbe 0x4ad3c1
mov esi, ecx
mov dword [ebp + 0x3c], ecx
cmp esi, dword [ebp + 0x38]
jb 0x4ad477
mov edx, dword [ebx + 0x5c]
mov ecx, edi
push esi
call fcn.00414ae5
test eax, eax
jne 0x4ada03
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.004ab01a
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.004addbb
test al, al
je 0x4ad464
lea ecx, [ebx + 0xc]
call fcn.00403988
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebx + 0xc]
call fcn.004ab483
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.004ab25b
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 0x4ad3e8
jmp 0x4ad36c
lea ecx, [ebp - 0x10c]
call fcn.004ab25b
xor ebx, ebx
inc ebx
jmp 0x4ada05
mov ecx, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp + 0x58], edx
mov esi, edx
test ecx, ecx
je 0x4ad510
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + esi*4]
cmp dword [esi], 0x454c4946
jne 0x4ad4fc
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
or eax, edx
je 0x4ad4fc
movzx eax, dx
test eax, eax
ja 0x4ad46f
mov eax, dword [esi + 8]
jb 0x4ad4b1
cmp eax, ecx
jae 0x4ad46f
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0x454c4946
jne 0x4ad4fc
shr edx, 0x10
cmp word [ecx + 4], dx
jne 0x4ad4d5
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x4ad4d5
inc eax
mov dh, al
jmp 0x4ad4da
xor eax, eax
mov dh, al
inc eax
mov dl, byte [ecx + 6]
and dl, al
test byte [esi + 6], al
je 0x4ad4ee
test dl, dl
je 0x4ad4fc
test dh, dh
je 0x4ad46f
jmp 0x4ad4f6
test dl, dl
jne 0x4ad4fc
test dh, dh
je 0x4ad4fc
push esi
call fcn.004ad04f
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebx + 0x10]
inc esi
mov dword [ebp + 0x58], esi
cmp esi, ecx
jb 0x4ad489
xor edx, edx
mov esi, edx
test ecx, ecx
je 0x4ad533
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
cmp dword [ecx], 0x454c4946
jne 0x4ad529
call fcn.004ae128
mov ecx, dword [ebx + 0x10]
inc esi
cmp esi, ecx
jb 0x4ad516
xor edx, edx
mov dword [ebp + 0x54], edx
test ecx, ecx
je 0x4ad765
mov edi, edx
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp + 0x50], esi
cmp dword [esi], 0x454c4946
jne 0x4ad753
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4ad753
cmp edi, 0x10
jae 0x4ad572
cmp byte [ebx + 0x85], al
je 0x4ad753
xor ecx, ecx
inc ecx
test byte [esi + 6], cl
jne 0x4ad587
cmp byte [ebx + 0x86], 0
je 0x4ad753
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 0x4ad5c9
cmp dword [esi + 0x34], 0
mov ecx, edx
jbe 0x4ad5c9
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 0x4ad5c4
inc ecx
add edx, 8
cmp ecx, dword [esi + 0x34]
jb 0x4ad5a7
jmp 0x4ad5c7
mov dword [ebp + 0x38], ecx
xor edx, edx
cmp dword [esi + 0x28], edx
jne 0x4ad649
cmp edi, 0x10
jae 0x4ad5fa
cmp dword [esi + 0x34], 0
mov eax, edx
mov dword [ebp + 0x58], edx
jbe 0x4ad649
push eax
mov ecx, esi
call fcn.004aca30
or eax, edx
jne 0x4ad5fa
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x34]
jb 0x4ad5de
xor edx, edx
jmp 0x4ad649
lea ecx, [esi + 0x24]
call fcn.004ab50f
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 0x4ad61d
mov ecx, edi
call fcn.00401c5c
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x2c]
push eax
add ecx, 8
call fcn.00403b23
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 0x4ad753
push eax
mov ecx, esi
call fcn.004abe69
test eax, eax
js 0x4ad66d
dec dword [esi + 0x10]
xor edx, edx
jmp 0x4ad743
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 0x4ad6aa
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.004ab3d2
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 0x4ad740
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x4ad6de
cmp ecx, dword [ebp + 0x38]
je 0x4ad73b
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]
lea ecx, [ecx + 8]
cmp edi, 8
jne 0x4ad703
mov edx, str._Bad
call fcn.004028e5
test al, al
jne 0x4ad72a
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.004ab3d2
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 0x4ad6d0
jmp 0x4ad666
mov edi, dword [ebp + 0x54]
jmp 0x4ad72d
mov edi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x58]
inc eax
mov dword [ebp + 0x58], eax
cmp eax, dword [esi + 0x28]
jb 0x4ad657
mov ecx, dword [ebx + 0x10]
inc edi
mov dword [ebp + 0x54], edi
cmp edi, ecx
jb 0x4ad540
mov edi, dword [ebp + 0x30]
cmp ecx, 9
jbe 0x4ad86c
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 0x4ad86c
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.004028e5
test al, al
jne 0x4ad7b2
mov edx, dword [ebp + 0x50]
inc esi
cmp esi, dword [edx + 0x34]
jb 0x4ad784
jmp 0x4ad86c
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.004acad0
mov esi, eax
test esi, esi
je 0x4ad7f2
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x4ad7eb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, esi
jmp 0x4ada05
mov esi, dword [ebp + 0x58]
test esi, esi
je 0x4ad85a
mov eax, dword [ebp + 0x44]
cmp byte [eax + 4], 0
je 0x4ad80a
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x4ad80f
mov ecx, dword [eax + 0x14]
xor eax, eax
xor edx, edx
cmp eax, edx
ja 0x4ad85a
jb 0x4ad81f
cmp ecx, 0x20000000
jae 0x4ad85a
lea eax, [ecx + 1]
mov edx, 0x40000
test edx, eax
je 0x4ad85a
sub ecx, edx
mov dword [ebp + 0x44], ecx
push ecx
lea ecx, [ebx + 0x70]
call fcn.00405170
push dword [ebp + 0x44]
mov edx, dword [ebx + 0x70]
mov ecx, esi
call fcn.00414ae5
mov ebx, dword [ebp + 0x34]
test eax, eax
jne 0x4ad85a
mov ecx, ebx
call fcn.004ae402
mov byte [ebp - 4], 0x13
jmp 0x4ad862
mov byte [ebp - 4], 0x14
test esi, esi
je 0x4ad868
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 0x4ad917
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 0x4ad8b7
test eax, eax
jne 0x4ad8b7
or eax, 0xffffffff
jmp 0x4ad8f6
push eax
push ecx
mov ecx, ebx
call fcn.004abeb0
test eax, eax
js 0x4ad8db
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 0x4ad8f3
mov ecx, dword [ebp + 0x44]
xor eax, eax
inc eax
test byte [ecx + 6], al
je 0x4ad8ed
mov byte [ebp + 0x4b], al
push 0xfffffffffffffffe
jmp 0x4ad8f2
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 0x4ad889
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x54]
cmp byte [ebx + 0x85], 0
je 0x4ad966
mov dword [ebx + 0xa0], eax
lea ecx, [ebp + 0x40]
inc eax
push str._SYSTEM_
mov dword [ebp + 0x54], eax
call fcn.004023e2
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00403988
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004ab4c9
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x4ad966
push dword [ebp + 0x40]
call fcn.0056651e
pop ecx
cmp byte [ebp + 0x4b], 0
je 0x4ad9b5
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.004023e2
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x17
mov ecx, esi
call fcn.00403988
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004ab4c9
cmp dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
je 0x4ad9b5
push dword [ebp + 0x40]
call fcn.0056651e
pop ecx
cmp byte [ebp + 0x4a], 0
je 0x4ad9fc
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x2c]
push str._UNKNOWN_
mov dword [ebx + 0xa8], eax
call fcn.004023e2
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 0x18
mov ecx, esi
call fcn.00403988
lea eax, [ebp + 0x2c]
mov ecx, esi
push eax
call fcn.004ab4c9
cmp dword [ebp + 0x2c], 0
je 0x4ad9fc
push dword [ebp + 0x2c]
call fcn.0056651e
pop ecx
xor eax, eax
jmp 0x4ada03
xor eax, eax
inc eax
mov ebx, eax
lea ecx, [ebp - 0x9c]
call fcn.004ab25b
mov dword [ebp - 4], 0x19
test edi, edi
je 0x4ada21
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, ebx
jmp 0x4ada28
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