Function at 0x520660
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x1898054]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x520d5f
sub esp, 0x78
mov eax, dword [esp + 0x7c]
movzx ecx, byte [eax + 5]
test cl, cl
je 0x520688
mov ecx, dword [eax + 0x14]
jmp 0x52068f
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x40], ecx
lea edx, [eax + 0x18]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0x44
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 0xc], xmm0
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x1c], ebx
call fcn.004b3350
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jbe 0x520d54
mov edx, dword [esp + 0x20]
movzx ebx, byte [edx + 1]
mov ebp, dword [esp + 0x28]
cmp bl, 0x2d
je 0x5206fa
cmp bl, 0x2b
jne 0x5206ff
dec ebp
inc edx
dec ecx
jmp 0x520702
mov byte [edx], 0x2b
mov ebx, dword [esp + 0x7c]
movzx esi, byte [ebx + 9]
xchg esi, eax
test al, al
xchg esi, eax
je 0x52072a
test ecx, ecx
jbe 0x520d4b
cmp byte [edx], 0x2b
jne 0x52072a
movzx esi, byte [ebx + 7]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x52072a
mov byte [edx], 0x20
cmp ecx, 1
jbe 0x520d41
movzx esi, byte [edx + 1]
xchg esi, eax
cmp al, 0x49
xchg esi, eax
je 0x5207e5
xchg esi, eax
cmp al, 0x4e
xchg esi, eax
je 0x5207e5
movzx esi, byte [ebx + 8]
xchg esi, eax
test al, al
xchg esi, eax
je 0x520832
mov esi, dword [esp + 0x8c]
cmp esi, 0x62
je 0x520832
cmp esi, 0x67
jg 0x52077c
cmp esi, 0x47
je 0x520786
cmp esi, 0x67
je 0x520786
jmp 0x520796
cmp esi, 0x76
je 0x520786
cmp esi, 0x78
jne 0x520796
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
jne 0x520798
mov eax, 6
jmp 0x520798
xor eax, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x2e], 0
mov word [esp + 0x32], 0
mov edi, 1
xor edi, edi
xchg edi, eax
mov byte [esp + 0x34], al
xchg edi, eax
xor edi, edi
xchg edi, eax
mov byte [esp + 0x36], al
xchg edi, eax
xor edi, edi
mov dword [esp + 0x38], edi
mov edi, 6
mov dword [esp + 0x3c], edi
lea edi, [esp + 0x2e]
mov dword [esp + 0x60], edi
mov edi, 1
jmp 0x520a4e
movzx eax, byte [ebx + 0xa]
mov byte [esp + 0x35], al
mov byte [ebx + 0xa], 0
cmp byte [edx + 1], 0x4e
jne 0x52080e
movzx esi, byte [ebx + 9]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x52080e
movzx esi, byte [ebx + 7]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x52080e
dec ebp
inc edx
dec ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.0051ed80
movzx eax, byte [esp + 0x35]
mov ecx, dword [esp + 0x7c]
mov byte [ecx + 0xa], al
add esp, 0x78
ret
movzx esi, byte [ebx + 7]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x52084d
test ecx, ecx
jbe 0x520a3c
cmp byte [edx], 0x2b
je 0x520a09
movzx esi, byte [ebx + 0xa]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5209f1
movzx esi, byte [ebx + 6]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x5209f1
movzx esi, byte [ebx + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5209f1
cmp dword [ebx + 0x10], ecx
jle 0x5209f1
test ecx, ecx
jbe 0x520a33
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebp
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
inc edi
movzx edx, byte [edx]
mov ebp, dword [eax]
cmp esi, edi
jae 0x52090e
mov dword [esp + 0x70], eax
mov byte [esp + 0x37], dl
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 8], eax
mov eax, dword [0x1898608]
test eax, eax
je 0x5208f9
call fcn.00476b10
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, ebx
mov ebx, dword [esp + 0x7c]
mov edi, edx
mov ebp, ecx
mov ecx, dword [esp + 0x48]
movzx edx, byte [esp + 0x37]
mov dword [eax + 4], edi
mov byte [edi + ebp - 1], dl
mov eax, dword [ebx + 0x10]
mov dword [esp], ebx
sub eax, ecx
mov dword [esp + 4], eax
call fcn.0051ec40
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x4c]
dec ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ebp, dword [esp + 0x48]
lea esi, [ebp + ebx - 1]
mov edi, dword [esp + 0x68]
add ecx, edi
dec ebp
mov edi, dword [eax]
cmp edx, esi
jae 0x52099a
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x64], ecx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x74], edi
lea eax, [edi + ebx]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.004774c0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 8], eax
mov eax, dword [0x1898608]
test eax, eax
jne 0x5209db
mov eax, dword [esp + 0x74]
jmp 0x5209eb
call fcn.00476b10
mov eax, dword [esp + 0x74]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
add esp, 0x78
ret
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.0051ed80
add esp, 0x78
ret
mov dword [esp], ebx
lea eax, [ebp - 1]
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, edx
mov dword [esp + 4], eax
lea eax, [ecx - 1]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.0051ed80
add esp, 0x78
ret
xor eax, eax
mov ecx, eax
call fcn.00476b80
xor eax, eax
mov ecx, eax
call fcn.00476b80
inc edi
mov byte [esp + 0x34], bl
mov ebx, dword [esp + 0x7c]
cmp ecx, edi
jle 0x520c21
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
movzx ebx, byte [edx + edi]
cmp bl, 0x45
ja 0x520a8b
cmp bl, 0x2e
jne 0x520a81
movzx ebx, byte [esp + 0x34]
mov ebx, 1
mov byte [esp + 0x36], bl
movzx ebx, byte [esp + 0x34]
jmp 0x520a45
cmp bl, 0x45
je 0x520a9d
jmp 0x520b5d
cmp bl, 0x50
je 0x520b78
cmp bl, 0x65
jne 0x520b58
cmp esi, 0x78
je 0x520b5d
cmp esi, 0x58
je 0x520b5d
sub ebp, edi
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edi
sub ecx, edi
mov ebx, dword [esp + 0x38]
lea esi, [ebx + ecx]
add ebp, edx
mov edx, dword [esp + 0x3c]
cmp edx, esi
jae 0x520b17
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x60]
add ebx, eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.004774c0
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x50]
mov ecx, edi
movzx ebx, byte [esp + 0x34]
mov eax, dword [esp + 0x54]
jmp 0x520a45
cmp bl, 0x70
je 0x520b78
cmp bl, 0x30
setne bl
movzx ebp, byte [esp + 0x34]
or ebx, ebp
test bl, bl
je 0x520b6f
dec eax
mov ebp, dword [esp + 0x4c]
jmp 0x520a45
sub ebp, edi
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edi
sub ecx, edi
mov ebx, dword [esp + 0x38]
lea esi, [ebx + ecx]
add ebp, edx
mov edx, dword [esp + 0x3c]
cmp edx, esi
jae 0x520be0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x60]
add ebx, eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.004774c0
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x50]
mov ecx, edi
movzx ebx, byte [esp + 0x34]
mov eax, dword [esp + 0x54]
jmp 0x520a45
movzx esi, byte [esp + 0x36]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x520c84
cmp ecx, 2
jne 0x520c38
cmp byte [edx + 1], 0x30
jne 0x520c38
dec eax
inc ecx
cmp ebp, ecx
jae 0x520c77
mov dword [esp + 0x58], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x7c]
mov byte [ecx + edx - 1], 0x2e
jmp 0x520c84
mov byte [ecx + edx - 1], 0x30
dec eax
test eax, eax
jle 0x520cc9
inc ecx
cmp ebp, ecx
jae 0x520c7e
mov dword [esp + 0x54], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0xd83480]
mov dword [esp + 0x10], eax
call fcn.00471940
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x7c]
jmp 0x520c7e
mov eax, dword [esp + 0x38]
lea esi, [eax + ecx]
cmp ebp, esi
jae 0x520d0a
mov dword [esp + 0x48], ecx
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
lea ecx, [0xd83480]
mov dword [esp + 0x10], ecx
call fcn.00471940
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x4c], ebp
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004774c0
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
jmp 0x520832
mov eax, 1
call fcn.00476b80
xor eax, eax
mov ecx, eax
call fcn.00476b80
mov eax, 1
call fcn.00476b80
nop
call fcn.00475700
jmp fcn.00520660