Function at 0x406860
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d02e8
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
xor al, al
mov esi, 8
mov byte [ebp - 0x26], al
cmp ebx, esi
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 0x22], 0
cmovl esi, ebx
mov dword [ebp - 0xac], 0
push esi
push edi
push eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], 0xa
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0xa
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], 0xa
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x90], 0xffffffff
call fcn.005a8300
add esp, 0xc
mov dword [ebp - 0x18], 0x474e5089
lea eax, [edi + esi]
mov dword [ebp - 0x14], 0xa1a0a0d
sub ebx, esi
mov dword [0x66e5f8], eax
mov dword [0x66e5fc], ebx
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
mov esi, 4
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4069e5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4069d0
xor eax, eax
jmp 0x406a0a
cmp al, byte [edx]
jne 0x406a05
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406a05
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x406a05
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x406a05
xor eax, eax
jmp 0x406a0a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407052
lea ecx, [ebp - 0x88]
call fcn.00406780
test eax, eax
jne 0x406a3f
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x406a37
mov eax, dword [ebp - 0x4c]
sub eax, ecx
sar eax, 3
push eax
push ecx
call fcn.00407320
or eax, 0xffffffff
jmp 0x407058
cmp eax, 0x52444849
jne 0x406ff8
cmp dword [ebp - 0x84], 0x19
jne 0x406ff8
mov ecx, dword [ebp - 0x88]
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
movzx ebx, byte [ecx + 0xc]
shl edx, 8
add edx, eax
shl ebx, 8
movzx eax, byte [ecx + 0xa]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd]
add ebx, eax
mov dword [ebp - 0x60], edx
movzx eax, byte [ecx + 0xe]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x58], edx
movzx eax, byte [ecx + 0xf]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x14], ebx
mov edi, ebx
test edx, edx
je 0x407074
cmp edx, 0x4000
ja 0x407074
test ebx, ebx
je 0x407074
cmp ebx, 0x4000
ja 0x407074
mov eax, ebx
mov dword [ebp - 0x3c], 0
imul eax, edx
xor esi, esi
push ecx
push ebx
push edx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x38], 0
shl eax, 2
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x8c], eax
call fcn.00406250
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xac]
push esi
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.00406530
add esp, 0x10
test eax, eax
jne 0x406fd5
push ecx
push ebx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
call fcn.00406250
cmp dword [0x66e5fc], esi
jle 0x406fd5
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x20]
call fcn.00406780
test eax, eax
je 0x406fd5
mov ebx, dword [ebp - 0x20]
cmp eax, 0x4c546361
jne 0x406ba3
mov dl, byte [ebp - 0x26]
test dl, dl
jne 0x406ec5
cmp byte [ebp - 0x21], dl
jne 0x406ec5
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x22], 1
push ebx
call fcn.004929e3
add esp, 4
cmp dword [0x66e5fc], 0
jg 0x406b56
jmp 0x406fd5
cmp eax, 0x4c546366
jne 0x406e37
mov dl, byte [ebp - 0x26]
test dl, dl
je 0x406cb6
cmp byte [ebp - 0x21], 0
je 0x406ec5
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.004066e0
test eax, eax
jne 0x406fc2
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc8]
push dword [ebp - 0x60]
call fcn.00406250
cmp esi, 2
mov esi, dword [ebp - 0xb4]
jne 0x406c05
push dword [ebp - 0x8c]
push dword [ebp - 0x6c]
push esi
call fcn.005a8300
add esp, 0xc
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x44]
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004063e0
mov eax, dword [ebp - 0x64]
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
call fcn.004071d0
cmp dword [ebp - 0x34], 2
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x44], eax
je 0x406caa
push dword [ebp - 0x8c]
push dword [ebp - 0x6c]
push esi
call fcn.005a8300
add esp, 0xc
cmp dword [ebp - 0x34], 1
jne 0x406caa
test edi, edi
je 0x406caa
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x44]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
lea esi, [edx + eax*4]
mov eax, dword [esi]
push ebx
add eax, ecx
push 0
push eax
call fcn.005a8e00
mov ecx, dword [ebp - 0x48]
lea esi, [esi + 4]
add esp, 0xc
sub edi, 1
jne 0x406c86
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xb4]
mov dl, byte [ebp - 0x26]
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x68], esi
movzx ecx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
movzx edi, byte [ebx + 0x10]
movzx esi, byte [ebx + 0x14]
shl ecx, 8
add ecx, eax
shl esi, 8
movzx eax, byte [ebx + 0xe]
shl ecx, 8
add ecx, eax
shl edi, 8
movzx eax, byte [ebx + 0xf]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 0x11]
add edi, eax
mov dword [ebp - 0x58], ecx
movzx eax, byte [ebx + 0x12]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x13]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x15]
add esi, eax
movzx eax, byte [ebx + 0x16]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x17]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x19]
mov dword [ebp - 0x3c], esi
movzx esi, byte [ebx + 0x18]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1a]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1b]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1d]
mov dword [ebp - 0x38], esi
movzx esi, byte [ebx + 0x1c]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1f]
mov dword [ebp - 0x64], esi
movzx esi, byte [ebx + 0x1e]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x21]
mov dword [ebp - 0x48], esi
movzx esi, byte [ebx + 0x20]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x406ddd
cmp ecx, 0x4000
ja 0x406ddd
test edi, edi
je 0x406ddd
cmp edi, 0x4000
ja 0x406ddd
mov eax, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x60]
ja 0x406ddd
mov eax, dword [ebp - 0x38]
add eax, edi
cmp eax, dword [ebp - 0x14]
ja 0x406ddd
cmp esi, 2
ja 0x406ddd
cmp dword [ebp - 0x40], 1
ja 0x406ddd
test dl, dl
je 0x406deb
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x26]
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406530
add esp, 0x10
test eax, eax
je 0x406def
lea ecx, [ebp - 0x80]
call fcn.00405d90
push ebx
jmp 0x406fcd
mov byte [ebp - 0x22], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
xor eax, eax
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp byte [ebp - 0x22], al
setne al
cmp ecx, eax
jne 0x406b8c
mov dword [ebp - 0x40], 0
cmp esi, 2
jne 0x406b8c
mov esi, 1
mov dword [ebp - 0x34], esi
jmp 0x406b8c
cmp eax, 0x54414449
jne 0x406e5d
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
mov byte [ebp - 0x26], 1
call fcn.00406680
add esp, 8
test eax, eax
jne 0x406ddd
jmp 0x406b8c
cmp eax, 0x54416466
jne 0x406eb7
cmp byte [ebp - 0x21], 0
je 0x406ec2
mov esi, dword [ebp - 0x1c]
lea edx, [ebx + 4]
lea ecx, [esi - 0x10]
mov eax, ecx
mov byte [edx + 3], cl
shr eax, 0x18
mov byte [edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [edx + 2], al
lea eax, [esi - 4]
push eax
mov dword [ebx + 8], 0x54414449
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x2c]
call fcn.00406680
add esp, 8
test eax, eax
jne 0x406ddd
mov esi, dword [ebp - 0x34]
jmp 0x406b8c
cmp eax, 0x444e4549
je 0x406f74
mov dl, byte [ebp - 0x26]
mov al, byte [ebx + 4]
cmp al, 0x41
jb 0x406de5
cmp al, 0x7a
ja 0x406de5
cmp al, 0x5a
jbe 0x406ee4
cmp al, 0x61
jb 0x406de5
mov al, byte [ebx + 5]
cmp al, 0x41
jb 0x406de5
cmp al, 0x7a
ja 0x406de5
cmp al, 0x5a
jbe 0x406f03
cmp al, 0x61
jb 0x406de5
mov al, byte [ebx + 6]
cmp al, 0x41
jb 0x406de5
cmp al, 0x7a
ja 0x406de5
cmp al, 0x5a
jbe 0x406f22
cmp al, 0x61
jb 0x406de5
mov al, byte [ebx + 7]
cmp al, 0x41
jb 0x406de5
cmp al, 0x7a
ja 0x406de5
cmp al, 0x5a
jbe 0x406f41
cmp al, 0x61
jb 0x406de5
test dl, dl
jne 0x406b8c
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
call fcn.00406680
add esp, 8
test eax, eax
jne 0x406ddd
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.00407090
jmp 0x406b95
mov al, byte [ebp - 0x26]
test al, al
je 0x406fc2
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.004066e0
test eax, eax
jne 0x406fc2
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x44]
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004063e0
mov eax, dword [ebp - 0x64]
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
call fcn.004071d0
jmp 0x406fca
lea ecx, [ebp - 0x80]
call fcn.00405d90
push dword [ebp - 0x20]
call fcn.004929e3
add esp, 4
lea ecx, [ebp - 0xac]
call fcn.00405d90
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x406ff8
xor eax, eax
cmp byte [ebp - 0x22], al
sete al
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x50]
xor esi, esi
mov ecx, dword [ebp - 0x54]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x40702b
nop dword [eax]
push dword [ecx + esi*8]
call fcn.004929e3
mov eax, dword [ebp - 0x50]
inc esi
mov ecx, dword [ebp - 0x54]
add esp, 4
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x407010
push dword [ebp - 0x88]
mov dword [ebp - 0x50], ecx
call fcn.004929e3
mov edx, dword [ebp - 0x54]
add esp, 4
test edx, edx
je 0x407052
mov ecx, dword [ebp - 0x4c]
sub ecx, edx
sar ecx, 3
push ecx
push edx
call fcn.00407320
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.004071a0
or eax, 0xffffffff
jmp 0x407058