Function at 0x405da0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d80e8
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x6610e4]
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.004a2340
add esp, 0xc
mov dword [ebp - 0x18], 0x474e5089
lea eax, [edi + esi]
mov dword [ebp - 0x14], 0xa1a0a0d
sub ebx, esi
mov dword [0x675d00], eax
mov dword [0x675d04], ebx
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
mov esi, 4
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x405f25
add ecx, 4
add edx, 4
sub esi, 4
jae 0x405f10
xor eax, eax
jmp 0x405f4a
cmp al, byte [edx]
jne 0x405f45
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405f45
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405f45
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x405f45
xor eax, eax
jmp 0x405f4a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406592
lea ecx, [ebp - 0x88]
call fcn.00405cc0
test eax, eax
jne 0x405f7f
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x405f77
mov eax, dword [ebp - 0x4c]
sub eax, ecx
sar eax, 3
push eax
push ecx
call fcn.00406860
or eax, 0xffffffff
jmp 0x406598
cmp eax, 0x52444849
jne 0x406538
cmp dword [ebp - 0x84], 0x19
jne 0x406538
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 0x4065b4
cmp edx, 0x4000
ja 0x4065b4
test ebx, ebx
je 0x4065b4
cmp ebx, 0x4000
ja 0x4065b4
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.00405790
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.00405a70
add esp, 0x10
test eax, eax
jne 0x406515
push ecx
push ebx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
call fcn.00405790
cmp dword [0x675d04], esi
jle 0x406515
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x20]
call fcn.00405cc0
test eax, eax
je 0x406515
mov ebx, dword [ebp - 0x20]
cmp eax, 0x4c546361
jne 0x4060e3
mov dl, byte [ebp - 0x26]
test dl, dl
jne 0x406405
cmp byte [ebp - 0x21], dl
jne 0x406405
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x22], 1
push ebx
call fcn.004482f3
add esp, 4
cmp dword [0x675d04], 0
jg 0x406096
jmp 0x406515
cmp eax, 0x4c546366
jne 0x406377
mov dl, byte [ebp - 0x26]
test dl, dl
je 0x4061f6
cmp byte [ebp - 0x21], 0
je 0x406405
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00405c20
test eax, eax
jne 0x406502
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc8]
push dword [ebp - 0x60]
call fcn.00405790
cmp esi, 2
mov esi, dword [ebp - 0xb4]
jne 0x406145
push dword [ebp - 0x8c]
push dword [ebp - 0x6c]
push esi
call fcn.004a2340
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.00405920
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.00406710
cmp dword [ebp - 0x34], 2
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x44], eax
je 0x4061ea
push dword [ebp - 0x8c]
push dword [ebp - 0x6c]
push esi
call fcn.004a2340
add esp, 0xc
cmp dword [ebp - 0x34], 1
jne 0x4061ea
test edi, edi
je 0x4061ea
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.004a2e40
mov ecx, dword [ebp - 0x48]
lea esi, [esi + 4]
add esp, 0xc
sub edi, 1
jne 0x4061c6
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 0x40631d
cmp ecx, 0x4000
ja 0x40631d
test edi, edi
je 0x40631d
cmp edi, 0x4000
ja 0x40631d
mov eax, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x60]
ja 0x40631d
mov eax, dword [ebp - 0x38]
add eax, edi
cmp eax, dword [ebp - 0x14]
ja 0x40631d
cmp esi, 2
ja 0x40631d
cmp dword [ebp - 0x40], 1
ja 0x40631d
test dl, dl
je 0x40632b
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.00405a70
add esp, 0x10
test eax, eax
je 0x40632f
lea ecx, [ebp - 0x80]
call fcn.004052f0
push ebx
jmp 0x40650d
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 0x4060cc
mov dword [ebp - 0x40], 0
cmp esi, 2
jne 0x4060cc
mov esi, 1
mov dword [ebp - 0x34], esi
jmp 0x4060cc
cmp eax, 0x54414449
jne 0x40639d
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
mov byte [ebp - 0x26], 1
call fcn.00405bc0
add esp, 8
test eax, eax
jne 0x40631d
jmp 0x4060cc
cmp eax, 0x54416466
jne 0x4063f7
cmp byte [ebp - 0x21], 0
je 0x406402
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.00405bc0
add esp, 8
test eax, eax
jne 0x40631d
mov esi, dword [ebp - 0x34]
jmp 0x4060cc
cmp eax, 0x444e4549
je 0x4064b4
mov dl, byte [ebp - 0x26]
mov al, byte [ebx + 4]
cmp al, 0x41
jb 0x406325
cmp al, 0x7a
ja 0x406325
cmp al, 0x5a
jbe 0x406424
cmp al, 0x61
jb 0x406325
mov al, byte [ebx + 5]
cmp al, 0x41
jb 0x406325
cmp al, 0x7a
ja 0x406325
cmp al, 0x5a
jbe 0x406443
cmp al, 0x61
jb 0x406325
mov al, byte [ebx + 6]
cmp al, 0x41
jb 0x406325
cmp al, 0x7a
ja 0x406325
cmp al, 0x5a
jbe 0x406462
cmp al, 0x61
jb 0x406325
mov al, byte [ebx + 7]
cmp al, 0x41
jb 0x406325
cmp al, 0x7a
ja 0x406325
cmp al, 0x5a
jbe 0x406481
cmp al, 0x61
jb 0x406325
test dl, dl
jne 0x4060cc
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
call fcn.00405bc0
add esp, 8
test eax, eax
jne 0x40631d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.004065d0
jmp 0x4060d5
mov al, byte [ebp - 0x26]
test al, al
je 0x406502
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00405c20
test eax, eax
jne 0x406502
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.00405920
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.00406710
jmp 0x40650a
lea ecx, [ebp - 0x80]
call fcn.004052f0
push dword [ebp - 0x20]
call fcn.004482f3
add esp, 4
lea ecx, [ebp - 0xac]
call fcn.004052f0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x406538
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 0x40656b
nop dword [eax]
push dword [ecx + esi*8]
call fcn.004482f3
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 0x406550
push dword [ebp - 0x88]
mov dword [ebp - 0x50], ecx
call fcn.004482f3
mov edx, dword [ebp - 0x54]
add esp, 4
test edx, edx
je 0x406592
mov ecx, dword [ebp - 0x4c]
sub ecx, edx
sar ecx, 3
push ecx
push edx
call fcn.00406860
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.00447f5d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.004066e0
or eax, 0xffffffff
jmp 0x406598